Wordpress Theme Only Displays After Login

8 replies
I always use FF, but I've viewed my site in IE and chrome and its always been fine before, but today i just went into chrome and IE and my WP site loaded but the theme and layout just didnt work!!

I've been checking my code and validating it using w3 validator and everything, but still it didnt work. Then as soon as i logged into my site on chrome and clicked view website link at the top of the wp cpanel it suddenly works perfect again. Then the same fix with IE. How is this possible?

I have no idea what is going on??? has anyone experienced this or have any insight??

--thanks.
#displays #login #theme #wordpress
  • Profile picture of the author Miroslav Chodak
    Hard to tell without seeing it. Could be just browser caching.
    {{ DiscussionBoard.errors[3858319].message }}
  • Profile picture of the author Miroslav Chodak
    Thanks for your PM. Unfortunately, my post count is not high enough to allow sending PMs. Here's my reply:

    No, it's not fine. What you're missing is a reference to your style sheet: hxxp://yourdomain.com/blog/wp-content/themes/elegant-grunge/style.css

    Check your header.php template file to make sure it's there and that it's not excluded with some conditional rule. Alternatively PM me the contents of your header.php and I will take a look.
    {{ DiscussionBoard.errors[3858448].message }}
  • Profile picture of the author Miroslav Chodak
    OK, I'm not quite sure.

    Did you do any changes to the header.php as compared to the original theme? If yes, try re-uploading the original file. If not, the only thought is that the latest version of WP (I see you upgraded to 3.1.2) is not playing well with your theme.

    To fix it, I would try deleting the following line from your header.php:

    <?php elegant_grunge_the_favicon() ?>
    This will cause the custom favicon to disappear, but otherwise the theme should work fine (hopefully). Alternatively, you can move the above line below your stylesheet reference, like so:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <?php elegant_grunge_the_favicon() ?>
    Let me know how it went, but pls don't PM as I cannot reply. Thanks!

    Edit: One more possibility: is it possible that you deleted or messed up the elegant_grunge_the_favicon function from your functions.php? If yes, try reinserting it from the original theme file.
    {{ DiscussionBoard.errors[3858605].message }}
  • Profile picture of the author sparckyz
    Tried commenting it out and then removing it, but still no luck

    I cant understand it, as far as i know all i did was auto upgrade the cache today, and im guessing thats when the problem started, but cant be sure
    {{ DiscussionBoard.errors[3858685].message }}
  • Profile picture of the author sparckyz
    Have tried manually putting the stylesheet line in

    <link rel="stylesheet" href="**myblog.com**/blog/wp-content/themes/elegant-grunge/style.css" type="text/css" media="screen" />

    but it seems to ignore it and somehow remove it when processing
    {{ DiscussionBoard.errors[3858726].message }}
  • Profile picture of the author Miroslav Chodak
    One last thought... try turning off your plugins. If the theme works fine with all plugins turned off, start turning them on, one by one and check after each new plugin. Make sure you are clearing your cache after each try.
    {{ DiscussionBoard.errors[3858729].message }}
  • Profile picture of the author sparckyz
    Think i finally stumbled on the solution -- for some reason the w3 total cache minify of css was causing problems, so disabled that particular feature and its working again
    {{ DiscussionBoard.errors[3859375].message }}
  • Profile picture of the author Miroslav Chodak
    Glad you got it solved!
    {{ DiscussionBoard.errors[3870102].message }}

Trending Topics