css conflict – wordpress theme css overrides plugin css
-
Hi all,
I wrote a plugin, everything works fine, but theme stylesheet, this one in header.php:
<link href=”<?php bloginfo(‘stylesheet_url’) ?>” rel=”stylesheet” type=”text/css” />
overrides my plugin styles, any idea how to fix it?? I made plugin classes, ids etc unique, I also played with order of theme and plugin stylesheets, but it doesn’t help.
I thought I can deregister theme stylesheet (wp_deregister_style) just before the plugin code starts and then reregister when plugin’s code ends, what do you think? But I can’t deregister bloginfo(‘stylesheet_url’), don’t know why. If you know how to do it or you have any other idea, please share.
Thanks for any help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘css conflict – wordpress theme css overrides plugin css’ is closed to new replies.