The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Need style.css to be last loaded CSS (4 posts)

  1. felixzacat
    Posted 3 years ago #

    With this Whispy theme the style.css is first loaded followed by CSS files of all the plugins. For example :

    <link rel="stylesheet" type="text/css" media="all" href="http://blue-walrus.com/wp-content/themes/whispy/style.css">
    <link rel="stylesheet" id="sfw-comment-style-css" href="http://blue-walrus.com/wp-content/plugins/spam-free-wordpress/css/sfw-comment-style.css?1357187486" type="text/css" media="all">

    I need style.CSS to be loaded last because I want to apply some global styles that override my plugins.

    This didn't used to happen with other themes, or older versions of wordpress.

  2. clashmedia
    Theme Author

    Posted 3 years ago #


    Stylesheet enqueueing is all handled by WordPress itself. This is so that plugins CAN override the core style.css

    If you wish to override that yourself, I'd recommend simply creating your own custom .css file, and statically including it AFTER the wp_head() entry in header.php That way you are guaranteed thta it will not be overridden.

  3. clashmedia
    Theme Author

    Posted 3 years ago #

    Actually - one thing I might try is to deactivate and then re-activate the theme itself - that MIGHT change the stylesheet loading order. I know that plugin order is set by what order they were activated in. Did you install those plugins AFTER installing the theme?

  4. felixzacat
    Posted 3 years ago #

    I used to have another theme and then i installed a bunch of plugins. Then I installed your theme, and now i have the problem. But its OK I think plugins SHOULD overide style.css, so I think I will create my own CSS file and add it after, and that should fix it.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic