WordPress.org

Support

Support » Themes and Templates » Styles/CSS not showing up

Styles/CSS not showing up

Viewing 8 replies - 1 through 8 (of 8 total)
  • Without looking at that tutorial, the first thing I’d do is double and triple check the path to your style.css file in the header information, making sure that it’s in the /wp-content/themes/YourTheme/ directory.

    Thanks for your reply. Here is what it says in my header.php file:

    <link rel=”stylesheet” type=”text/css” media=”screen” href=”<?php bloginfo(’stylesheet_url’); ?>” />

    Is this correct?

    Yeah, that looks right.

    Hmmm. Check to make sure your style.css file is in the right directory (which it should be if you’re able to see it on your “Theme Editor” page in the Admin Panel). Also, view your page source after it outputs into a browser without the styling and see what the PHP is putting out.

    The style.css does show in the Theme Editor in the Admin panel. But here’s something strange…when I view source, this is not there:

    <link rel=”stylesheet” type=”text/css” media=”screen” href=”<?php bloginfo(’stylesheet_url’); ?>” />

    I wonder what happened to it?

    Upon further investigation, the view source shows me that instead of the stylesheet url inside those parenthesis, it is giving the name of my blog. Could that be it?

    I decided to copy/paste some header info from another one of my blogs into this one and now the stylesheet is showing up. I guess it was faulty code.

    Thanks for your help!

    I’d say it was those curly quotes there around “stylesheet_url”. Those look funky.

    I had thought the same thing, doodlebee, but chalked it up to copying and pasting. The good thing about WP themes is the <head> stuff is usually pretty identical from one theme to the next, you can always use snippets to check your errors out.

    Glad you got it working!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Styles/CSS not showing up’ is closed to new replies.
Skip to toolbar