Posted: March 20, 2015 at 5:55 am
|
Hi, I think the file names and locations have changed a bit, so my code which I added to my functions.php looks like this:
I copied three files to wp-content/uploads/ I made some changes in all three files (like .content {max-width:900px}) and it works fine with the preview! However the email to the reistrant has standard values – it ignores my changes within email_main_default.css. Does anyone know why this is? |
|
any ideas? |
Hi, could you try this updated function? http://developer.eventespresso.com/hooks/fhee__ee_messages_template_pack__get_variation/ The one that you are using was deprecated: http://developer.eventespresso.com/hooks/fhee__ee_email_messenger__get_inline_css_template__css_url/ — |
|
|
Thanks Lorenzo, There is a line thanks again! |
Hi, you can update it to use your uploads folder or another location of your choice. I was trying to point out that the existing filter was deprecated so you would need to use the newer one: FHEE__EE_Email_Messenger__get_inline_css_template__css_url –> FHEE__EE_Messages_Template_Pack__get_variation — |
|
|
Hi again. I understood, that the function I was using is old and I should replace it to a new one. In you last posting it seems that I just have to replace the last line of the function in my first posting. Is that right? When I do that, I get lots of errors. So I guess I have to replace the whole function with the one found in here: So I put the following code in my functions.php
What next? Where should I put my css files? I’m sorry for bothering you again :-/ |
You put your css file (in this case new_html_variation.css) directly into your child theme. get_stylesheet_directory_uri() returns the URI for the current theme or if active, the child theme. |
|
|
Hi Josh, |
Hi there, Your code will only affect the editor because you have this check:
|
|
|
well, I thought that means ?? |
You’re correct, it does mean that. Which means you’re returning the $variation_path instead of $new_url in every condition except when it’s the wpeditor. I think you want to return the $new_url, right? |
|
The support post ‘Edit CSS of email messages’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.