• Hi,

    During troubleshooting for a problem with a caching plugin I was notified that my pages are missing the </html> and </body> closing tags, and that their caching plugin will not work without these two.

    Footer.php contains </html> and </body> as the final statements, so I don’t know what is going on and how to fix it..

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Footer.php contains </html> and </body> as the final statements, so I don’t know what is going on and how to fix it..

    Check your inner pages: I’m seeing your footer loaded ONLY on the homepage, 404 error page and search results page. Individual posts, pages, and category/tag/date archive pages don’t have the footer at all… and, consequently, no closing body and html tags.

    Thread Starter Morten Ross

    (@rosmo01)

    Thanks for your input! I’ve added to single.php and archive.php, and all posts and archives seem to have these in order now. For the page.php it does not affect the menu items that use pages – e.g https://www.ross.no/staging/portfolio-photostream/ – what am I missing?

    How do I find all missing tags – is there a debug tool that can highlight where this is missing? I don’t want risking adding tags where they are not needed and end up with the opposite situation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fixing missing closing HTML and body tags’ is closed to new replies.