The next step is to build the Footer. In the footer.php
file add the following content:
<div id="footer" style="display:none;"> <center>Mastering ExtJS book - Loiane Groner - <a href="http://packtpub.com">http://packtpub.com </a></center> </div> <?php wp_footer(); ?> <?php get_sidebar(); ?> </body> </html>
Following the same behavior as the Header, we have a div, footer
, that is not going to be displayed. This content will be displayed on a container later. This div
contains a simple copyright message and you can also add anything you like, even a widget.
Next, we are calling the wp_footer
function. On a WordPress template, we always need to call the wp_footer
function before closing the </body>
tag. If we do not use this function, it can break some plugins. This function fires the wp_footer
action; it is not going to make any difference in our theme.
Then, we have the get_sidebar
function. This function...