In header.php where is tag closed? (4 posts)

  1. thebiganswer
    Posted 5 years ago #

    Hi all,

    A quick and no doubt simple question: in the default theme's header.php the div tag with id="post" is not closed; where is it actually closed?

    Many thanks.

  2. iteamweb
    Posted 5 years ago #

    i think you are asking about the page.php file.
    Please look into it , the id="post" starts there and ends in the same page, there will be a comment page also with it.

  3. thebiganswer
    Posted 5 years ago #

    @iteamweb: thank you for your reply. In the header.php file which comes with the the theme I'm using (Linoluna), and also the default WordPress header.php file, the following...

    <div id="page">

    ...is stated but it is not closed in the same file. I've also looked in the footer.php file and there is a </div> which is not opened; I'm guessing this is the closing tag.

    I'm still learning my way around WordPress so I'm keen to learn the best practices.

  4. shawnyuan
    Posted 5 years ago #

    Yep your probably right @thebiganswer. Sometimes the tag that's not closed will be called #container, or #content.

Topic Closed

This topic has been closed to new replies.

About this Topic