• Resolved jxile

    (@jxile)


    I have been having an issue with my blog, it is not loading the stylesheet on single posts, and on tag pages either. It loads it fine on my pages, and home page, but not on any other. My website is J-Xile.com.

    The last that I noticed it worked correctly was a few days ago. I was messing with the single.php, index.php, and page.php trying to add the Yoast Breadcrumbs code to my blog, and thats when I noticed it stopped working. I have reverted all of the code, but no luck.

    I have also installed several other plugins right before it stopped working, let me know if that might be the issue and I will post them. Thanks for any help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • check if you have header included in the template file looks like its not loading your header as that is where style code is.

    the way you link your style sheet (with a relative url):

    <link rel="stylesheet" type="text/css" media="screen" href="../wp-content/themes/pixel/style.css" />

    is somehow different from the ‘normal’ way used by most themes, which use an absolute file path (for instance):

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    Thread Starter jxile

    (@jxile)

    I tried putting the code in and it didn’t work on the template or header:

    <link rel="stylesheet" href="<?php bloginfo('../wp content/themes/pixel/style.css"'); ?>" type="text/css" media="screen" />

    Is this style sheet url correct for the code do you think?

    I checked the single.php, and the page.php and both have the code:
    <?php get_header(); ?>

    Is there another file I should be checking for the header code as well?

    what is wrong with this:
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    have you at least tried it?
    works in most themes …

    don’t make anything up the way you think it might be – read:
    http://codex.wordpress.org/Function_Reference/bloginfo

    Thread Starter jxile

    (@jxile)

    I am happy to report that it is fixed now, I had entered in the code with the actual style sheet URL in the ‘stylesheet_url’ so it wasn’t working. ^Thanks for all of the help!

    Topic resolved button would be nice 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stylesheet not loading on single posts.’ is closed to new replies.