Overwriting Plugin CSS

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Overwriting Plugin CSS

Postby miguael » 05 Feb 2010, 03:14

I just read the article on custom-styles - so right!!! Great stuff and I am using it heavily :-)

But from time to time I run into a problem... Sometimes, when there is CSS from a plugin it fetches the CSS from Suffusion before the plugin and the plugin overwrites my customized CSS.

Is there a workaround? Or - if not - could it be possible, that suffusions CSS get's loaded at last?

Thanks already!
miguael
 
Posts: 63
Joined: 11 Dec 2009, 05:45

Re: Overwriting Plugin CSS

Postby Connie » 05 Feb 2010, 09:21

Did you try this trick, I do not know if it works with WordPress, but I know it works with CMSMadeSimple f.e.:

some plugins have their own CSS file, but try this:
delete that CSS file and write the plugin-definitions into the custom style itself

maybe it works..
User avatar
Connie
 
Posts: 1163
Joined: 10 Nov 2009, 04:53

Re: Overwriting Plugin CSS

Postby sayontan » 05 Feb 2010, 10:13

One trick is to bump up the CSS specificity. E.g. if your plugin defines a style for .post, you can override that with a prior definition that uses "#wrapper .post". Though the plugin's CSS definition comes later, the prior definition is more specific for pointing to the post, so it will take precedence.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Overwriting Plugin CSS

Postby miguael » 05 Feb 2010, 10:18

Thank you - you Gurus :-)
miguael
 
Posts: 63
Joined: 11 Dec 2009, 05:45


Return to Support Requests

Who is online

Users browsing this forum: Google [Bot] and 5 guests