Support » Fixing WordPress » Validation error– need to remove div tag…

  • Resolved skaramouche


    When I try to validate my wordpress (located here), I come up with an error. The problem is that the div “content” is being defined twice and I’m not sure how to remove it. I know “content” is only defined once in the header, but apparently another function is calling more code. I thought index.php only called the header and footer– can anyone explain to me how this works?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Clcik the Show Source and Revalidate. The line# will become a clickable link to show exactly where the error is. It is probably a mistake in the theme’s code.

    I’m sure it’s a problem with the theme, it’s actually my first attempt at making one. The ‘div id=”content”‘ tag is in both header.php and page.php. I’ve tried deleting the line from page.php, but it’s still showing up for some reason.

    Before making a theme it is good to understand first the template hierarchy… > see Codex.
    page.php has nothing to do with your index.

    ahh, that’s exactly what I was looking for, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Validation error– need to remove div tag…’ is closed to new replies.