Support

Home Forums Event Espresso Premium !important suggestion

!important suggestion

Posted: February 21, 2013 at 1:57 pm

Viewing 4 reply threads


cerulean

February 21, 2013 at 1:57 pm

Maybe there’s a good reason not to do this, but it would be nice to be able to override Themeroller styles in style.css without having to frequently use !important (currently all of the plugin CSS files are loaded after the theme CSS). Just a suggestion.


Garth

  • Support Staff

February 21, 2013 at 1:59 pm

Thank you. I’ll pass this on…


Dean

February 22, 2013 at 12:23 am

Hi,

Can you give me an example of an issue with not being able to over rule the themeroller styles? Generally so long as the specificity is good, then they can be over ruled. Of course if we have thrown in an !important ourselves, then that’s a different matter.


cerulean

February 25, 2013 at 8:49 am

I’ve noticed that most plugins insert their CSS file before the primary theme css file is loaded. This way, anything you want to change you can just add in the plugin CSS rule and add the modifications and there are no issues.

This plugin, on the other hand, inserts its CSS files after the theme css files, so what I’ve found is that I have to add !important in order to force the theme CSS to overrule the plugin CSS, since the plugin CSS comes after it. There’s no other way it will work.

My suggestion, if I wasn’t being clear, is just to have plugin CSS files precede the theme CSS files so forcing CSS via !important is no longer necessary.


Dean

February 26, 2013 at 12:13 am

Hi,

I have raised a developer ticket to double check the load order of the css and if need be to fix it.

Viewing 4 reply threads

The support post ‘!important suggestion’ 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