• Hi everyone-

    I’m trying my hand at creating a custom theme for a new website, but I’ve run into a bit of a snag – Doesn’t seem what I do, anything I change in my style.css won’t reflect on the actual site.

    I know the stylesheet is linked into the index page, since I am building it with Dreamweaver and I can see the .css changes in the design mode while I work on it, but when I upload it to my site, I get nothin.

    Here is the page I’m working on: http://wormbone.com/wordpress/

    Maybe someone knows why this isn’t working. This is my first shot at using 3.0, so maybe the way the stylesheet is linked to the index has changed? I hope someone can help me out!

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Style.css should be linked to header.php. index.php and other template files will load this header.php using get_header() function.

    The following line of code is an example how to embed stylesheet on your header.php:

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

    Please look at the source code of Twenty Ten theme (WP >3.0). It’s verbose enough in explaining what a block of code is doing.

    Style.css should be linked to header.php. index.php and other template files will load this header.php using get_header() function.

    The following line of code is an example how to embed stylesheet on your header.php:

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

    Please look at the source code of Twenty Ten theme (WP >3.0). It’s verbose enough in explaining what a block of code is doing.

    Thread Starter poinko

    (@poinko)

    My design isn’t calling in a header.php file; right now I’m only using index.php and style.css. The stylesheet is linked in the <head> tag of the index.php file. I can see the stylesheet being applied to the index when I’m working on it in Dreamweaver, but when I upload it to my WordPress folder, it doesn’t apply the stylesheet to the design. I even copied the link code verbatim from the Twenty Ten theme and it still won’t work. I can pull up the stylesheet in the CSS editor in the dashboard even, and it will save all the changes I make, but they won’t show up on the index page.

    Was this changed in 3.0 where you have to have the header be separate from the index.php page? I can’t imagine this would be what’s stopping it from showing up, even if it was linked directly…

    I think, this resource will help you: http://codex.wordpress.org/Theme_Development.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘style.css not displaying on site’ is closed to new replies.