WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Validation error-- need to remove div tag... (5 posts)

  1. skaramouche
    Member
    Posted 8 years ago #

    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?

  2. moshu
    Member
    Posted 8 years ago #

    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.

  3. skaramouche
    Member
    Posted 8 years ago #

    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.

  4. moshu
    Member
    Posted 8 years ago #

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

  5. skaramouche
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags