Viewing 5 replies - 1 through 5 (of 5 total)
  • That’s a lot of errors. Take it piece by piece. Disable all of your plugins. Get the theme valid, then enable a plugin and get it valid. Then do it again.

    You say that you removed “the “Recent Posts” section of the sidebar”? Are you sure you didn’t remove a little too much or a little too little code? One error can trigger a lot of other errors downstream of it.

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    I realized that there was a style link before the header on my homepage:

    <?php
    /*
    Template Name: Home
    */
    ?>
    <link href="/wordpress/wp-content/themes/peainthepodcast/style.css" rel="stylesheet" type="text/css" />
    
    <?php get_header(); ?>

    which I think was making the doctype show up twice. However, when I remove the style sheet link, I suddenly see about 40 more validation errors. Can anyone help me figure out what is going on here?

    Looks like it’s in the wrong place. Style sheets should be in the header.php file.

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    yeah they are in the header file. I’m not sure how it ended up in the homepage.php, but when i remove it, the css doesn’t show up properly for the navbar

    Most likely what is happening is the LINK element before the DOCTYPE declaration nullifies the latter. When you remove the link, both the validator and your browser are trying to comply with the 1.0 Strict standard, which is going to break anything that isn’t coded perfectly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘W3C Validation Errors – Can’t figure it out!’ is closed to new replies.