Why split divs between header and page
-
Hello. I’m currently learning how to create my own templates. There is a question that keeps haunting me everytime I dig into a new template that I hope someone can answer. It’s probably simple. Why in the world are divs opened in the header and closed in the page content? I understand having one main content wrapper div opened in the header and closed in the page but to have two divs opened at the end of the header.php just seems silly to me. Please clarify. I won’t include the entire header but the tail end of the code. Here is the code I have seen many many times.
<body> <div id="wrap"> <div id="head"> <h1><?php bloginfo('name'); ?></h1> <h3><?php bloginfo('description'); ?></h3> </div> <!--Retrieving a list of pages from the database is also very easy. We use the wp_list_pages(); function. Note that we also include a title_li= arguement. This is to stop the function from creating an extra list item called 'Navigation:' before listing the pages. We've also opened the relevant div's and wrappers for the next section.--> <div id="nav"> <ul> <?php wp_list_pages("title_li="); ?> </ul> </div> <div id="content"> <div class="contentwrap">
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Why split divs between header and page’ is closed to new replies.