WordPress WordPress Theme Development Finishing Your WordPress Theme Adding Widget Areas to a WordPress Theme

Is the syntax missing a </div> on the archive.php file?

Upon inspecting the archive.php file and properly indenting the divs, I noticed that there appears to be a missing closing </div>.

Am I wrong?

2 Answers

Sergio Alen
Sergio Alen
26,726 Points

you sure the closing </div> is not in the footer.php or maybe in any other file that's included in archive.php?

You are quite right! I had to add it after "? php get_sidebar(); ?" on line 47 in order for the Sidebar to show up properly on the "uncategorized" page. Thanks for pointing this out.