• Resolved dannymccaslin

    (@dannymccaslin)


    I’m learning how to create WordPress Themes, and I’ve uploaded my small sample theme into a localized WordPress installation using WAMP. Everything is there, but none of the styles are carrying over from the stylesheet is showing up. I have the stylesheet in the same theme folder as all of the other files, and, of course, the theme name shows up, so I know that WordPress is reading the stylesheet, and I have the requisite <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" /> line in the head of my header. It worked with the html mockups I made of the pages before I converted them to templates, and both the HTML and the CSS passed w3C validation. I’m at a loss, and the only thing I can think is that I mucked something up in the PHP (or that I have a WordPress file error, or that I just flat out screwed something up.) Does anyone have any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is the name of your stylesheet?

    Thread Starter dannymccaslin

    (@dannymccaslin)

    style.css

    Thread Starter dannymccaslin

    (@dannymccaslin)

    This still isn’t working. Here is the head of my file after it has been parsed, courtesy of the Gooogle Chrome Developer Tools:

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8 />
    <title>PanTran | Just another WordPress site</title>
    <link rel="stylesheet" type="text/css" href="http://localhost/blog/wp-content/themes/SampleTheme/style.css" />
    <script type="text/javascript" src="http://localhost/blog/wp-content/themes/SampleTheme/js/tplan.js"> </script>
    <meta name='robots' content='noindex,nofollow' />
    <link rel='stylesheet' id='admin-bar-css'  href='http://localhost/blog/wp-includes/css/admin-bar.css?ver=3.4.1' type='text/css' media='all' />
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost/blog/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost/blog/wp-includes/wlwmanifest.xml" />
    <meta name="generator" content="WordPress 3.4.1" />
    <style type="text/css" media="print">#wpadminbar { display:none; }</style>
    <style type="text/css" media="screen">
    	html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }
    </style>
    </head>

    The call for the stylesheet is there, and the stylesheet is there, and the stylesheet works with the html mockups on my desktop, but for some reason it just doesn’t seem to be parsing the html through the stylesheet.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘I've got no style!’ is closed to new replies.