Support » How-To and Troubleshooting » [Resolved] Stylesheet not hooking up properly

[Resolved] Stylesheet not hooking up properly

  • I’m about to go crazy here… I’ve checked everything a million times, but cannot find the reason why my stylesheet “stopped working”. It was working for a while, but something I did must’ve altered the way it’s linked up. I’m trying to learn how to build my own theme, so there’s bound to be some personal error. I just can’t find it and I’m going crazy=-).
    I’m just trying to set up a theme template, so nothing looks good and nothing is designed yet. I’m doing it locally in wamp. My style.css file is in the root directory of my theme’s folder.
    I’d REALLY appreciate it if someone could take a look at it. Thanks in advance.
    header.php file: http://pastebin.com/azSsz4j1
    index.php file: http://pastebin.com/v9FJU2J6
    style.css file: http://pastebin.com/tQKmQbnY

Viewing 4 replies - 1 through 4 (of 4 total)
  • Line 4 of header.php is <body>. stopped looking at that point. totaly wrong.

    in index.php, looks like lines 10-12 were added in wrong place. Same.

    The last paste has been removed.

    Where did all this PHP come from?

    @pioneer Valley Web Design Member:
    Thank you. Some how in the chopping process the body tag got left behind. It doesn’t help that I do this all very late in the wee hours of the morning;). But at least now the stylesheet is working! I appreciate you taking a look.
    I have so many differing “WP Theme Building Tutorials” that I don’t know which one is THE one to follow. Do you know where I can find a clear example of just a bare-bones Theme Template that demonstrates exactly how the index.php and header.php files should look?
    Forgive me. This is all totally new for me …but I’d like to learn and any little bit of help along the way makes it a whole lot easier.

    Just download a bunch of popular themes from here and start going through them.

    The place to learn about theme development is here:


    I suggest that a default theme (twenty-something, 10,11,12,13,14) and a well designed Child Theme is a great way to customize sites.

    Thanks a lot! I’ll begin going through them, which is not easy for someone who just started learning php =). I should probably just do a new post, but I do have a different problem…
    I have a div for my site-header with only a <p> tag in it for the sake of testing, and my css is only working for the <p> element… I can’t assign ANY attributes to the actual div itself!
    CSS: http://pastebin.com/YfjfXSMT
    html: http://pastebin.com/idAPWjk6

    As you can see, the background should be white and should have a height of 400px. But it looks like this: http://snag.gy/P8VZm.jpg
    THe <p> text is red and 2ems, but the css for the actual div just isn’t doing it’s job. ANyway, hope you can help. Thanks;-)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Stylesheet not hooking up properly’ is closed to new replies.