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.

    Thread Starter susien

    (@susien)

    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.

    Thread Starter susien

    (@susien)

    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?

    Thread Starter susien

    (@susien)

    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?

    Thread Starter susien

    (@susien)

    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.