WordPress.org

Ready to get started?Download WordPress

Forums

Styles/CSS not showing up (9 posts)

  1. SusieN
    Member
    Posted 6 years ago #

    I just created my first WordPress theme following the tutorials found here: http://websavvymama.com/blog/?p=16

    For some reason, the styles aren't showing up. Is there something missing from this tutorial?

  2. GOBLUE14
    Member
    Posted 6 years ago #

    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.

  3. SusieN
    Member
    Posted 6 years ago #

    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?

  4. GOBLUE14
    Member
    Posted 6 years ago #

    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.

  5. SusieN
    Member
    Posted 6 years ago #

    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?

  6. SusieN
    Member
    Posted 6 years ago #

    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?

  7. SusieN
    Member
    Posted 6 years ago #

    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!

  8. Doodlebee
    Member
    Posted 6 years ago #

    I'd say it was those curly quotes there around "stylesheet_url". Those look funky.

  9. GOBLUE14
    Member
    Posted 6 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic