Forums

Plugins & CSS (2 posts)

  1. baszer
    Member
    Posted 6 months ago #

    Hello,

    I want to change some CSS in the plugins. I did this, as you know when you update the plugin your CSS get over written and my styling is gone.

    Is it so that all plugins first look in the theme folder for custom CSS files before using there own CSS file?

    Or is this per plugin different?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 6 months ago #

    it's all in how the plugin is coded

    Some plugins load their own stylesheets, some don't. Some allow you to turn off their css, some don't

    However, You can add css to your theme stylesheet which will affect the plugins output.

    For instance, if a plugin adds

    <div class="plugin-stuff">
       <span class="plugin-content"> I was put here by the plugin </span>
    </div>

    to my content, I can put

    .plugin-stuff .plugin-content {
             css: rules;
    }

    in my theme style.css to affect the styling

    If the plugin is properly coded, you can also 'turn off' the stylesheets from inside your functions.php using http://codex.wordpress.org/Function_Reference/wp_deregister_style

    http://vudu.me/4o
    Is an example of how I do that for contact form 7

Reply

You must log in to post.

About this Topic

Tags