Thord Daniel Hedengren - Smashing WordPress_ Beyond the Blog-Wiley (2014)

(avery) #1

76 PART II • Designing and Developing WordPress Themes


THE FOOTER, WITH FOOTER.PHP
The footer is really simple to get right in this theme, so you might as well just get it out of the
way. Skipping everything in between, such as the content and right column, you’ll move along
to the bottom part. Just like the header.php file, this is something that needs to be global,
although you can have several footers if you like. Figure 4-4 shows what you’ll be working
with here.

Figure 4-4: This is what will go in footer.php.

Returning to the HTML file, you’ll see that the following is the code copied to a file named
footer.php:

<footer id="footer-container">
<nav>
<div class="menu">
<ul>
<li><a href="#">Menu item</a></li>
<li><a href="#">Another one</a></li>
<li><a href="#">Third menu item</a></li>
</ul>
</div>
</nav>

<p>Copyright © 2013, and similar information</p>
</footer> <!-- #footer-container ends -->
Free download pdf