Wordpress MU CSS not loading - any advice?

by 10 replies
13
I have a problem with a new website on HostGator. I have installed WordPress Multi-User, and most everything seems to be working properly, EXCEPT, almost 90% of the time (but, not all of the time) the CSS is not called on first page load in a new browser. Clicking on the "Refresh" button corrects the problem

HostGator support looked at the Apache error logs and discovered that the name of the theme that is being called is not being inserted into the style import line.

On first load into a new browser, the page source shows ...

Code:
<style type="text/css" media="screen">
    @import url(http://my_domain.com/wp-content/themes//style.css);
</style>
When I hit refresh, the source shows ...

Code:
<style type="text/css" media="screen">
    @import url(http://my_domain.com/wp-content/themes/my_theme/style.css);
</style>
Anyone have any idea what could be causing this?

Many thanks in advance,
Kirk
#programming #advice #css #loading #wordpress
  • Hello Kirk!
    I've been playing around with MU for my travel blog and had various issues with it. Not the least was the update overwriting changes..sigh..

    Is your setup for sub-domains or sub directories?
    I had a bad time with the sub domains and switched to sub directories.

    Are you using Super Cache per chance?
    • [1] reply
    • I have it set up for sub-domains, but I'm not using Super Cache.

      Would like to stay with sub-domains.

      This actually seems to be related to the theme. I'm using an older (2.6 - 2.7 era) theme, and thinking its limited to it. I'll be switching to a newer theme and seeing if it makes a difference.

      Cheers, and thanks for looking at this.
  • Had a "Brain Burp" thinking that it may be the "Redirection" plugin not being compatible with WPMU. Anyone have any experience on this?
  • I had several strange events while setting my WPMU up. I originally went with sub domains and had issues with things working one minute and then not working the next. I fiddled with it for quite some time actually and I am no noob to the inner workings of web programs.

    After a couple more installs and trials I set up sub directories. So far no real issues except when making modifications to the default template that is displayed to guests. Any WP updates done automatically overwrites everything you have modified..lol
    So be aware and make backups..

    If you find a solution please let us know.

    Good Luck Kirk!

    Ken
  • Do you have to import it? I just link to my stylesheets in WPMU.

    Code:
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    • [ 1 ] Thanks
  • Thanks Carla,

    That makes sense, but I wasn't sure how to do it.

    Kirk
  • Hi again Carla,

    I went to edit my theme header and saw where I had changed that call to the one you suggested (based on feedback from the folks at wpmudev.org), however, I am still getting the same result.

    I've also removed all my MU plugins and reinstalled them, one at a time, and the problem still exists. Not as frequently as before, but still there nonetheless.

    This is getting to be a pain in the gazitchka.
    • [1] reply
    • Kirk,

      I have never, ever, seen this on my WPMU site.

      Forget plugins for the moment (a plugin can load header stuff itself which is easy to narrow down). What theme are you using - and does it work from if you change it?

      The themes header may have a lapse include - id check that first. If you want more help, i dont mind taking a look for you. (PM sent, (no im not offering services - free).
      • [1] reply

Next Topics on Trending Feed

  • 13

    I have a problem with a new website on HostGator. I have installed WordPress Multi-User, and most everything seems to be working properly, EXCEPT, almost 90% of the time (but, not all of the time) the CSS is not called on first page load in a new browser. Clicking on the "Refresh" button corrects the problem HostGator support looked at the Apache error logs and discovered that the name of the theme that is being called is not being inserted into the style import line.