• 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)
  • Thread Starter Zado1984

    (@zado1984)

    Ok, the other solution is to add the plugin function right after <head> tag in pages, so it would load before any other css is used, could you help me with that? I have to use jquery I suppose.

Viewing 1 replies (of 1 total)
  • The topic ‘css conflict – wordpress theme css overrides plugin css’ is closed to new replies.