Support

Home Forums Event Espresso Premium Remove CSS version numbers

Remove CSS version numbers

Posted: October 19, 2018 at 6:15 pm

Viewing 2 reply threads


yogakeys

October 19, 2018 at 6:15 pm

Hi, I am trying to remove the version number from my custom CSS file created for Event Espresso emails.

This is the query string trailing the CSS file address:

?wp-mce-4800-20180716-tabv-4.7.13:3

It is storing old styles.

Thank you.


Josh

  • Support Staff

October 22, 2018 at 8:30 am

Hi,

If you remove the query string you’ll eventually still have the issue of a stale cache in the email editor. (You’ll note the editor styles are not applied to the actual email).

What you can do instead is append your own custom string when you need to bust the browser cache. Here’s a link to a stackexchange answer that has some example PHP code you can add to a plugin:

https://wordpress.stackexchange.com/a/256504

What that will do is filter the string so you control the string instead of the WordPress supplied 'wp-mce-' . $tinymce_version.


yogakeys

October 25, 2018 at 3:15 pm

Worked a treat, thank you.

Viewing 2 reply threads

The support post ‘Remove CSS version numbers’ 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.

Event Espresso