Skip to main content

Ivan Teoh

Something personal yet public

WordPress Theme Development 4 - Footer

Normally, main index template file, index.php, consists of get_header();, posts (the loop) and get_footer();. If footer.php file exists, the code inside this file will appear in get_footer(); section. In footer.php, you might want to show WordPress support by having the "powered by" link in this file. I also include the WordPress version, so that the reader will know what version of WordPress I am using for this web site. Lastly, don't forget about wp_footer();. It has the same purpose as wp_head();. It will hook up with any functions that linked to wp_footer, especially from other WordPress plugin.

54-footer.php (Source)

 * @package WordPress
 * @subpackage Your_Theme
<!-- begin footer -->

<p><?php bloginfo('name'); ?> <?php _e('is proudly powered by'); ?>
  <a title="<?php _e('WordPress, state-of-the-art semantic personal publishing
  platform.'); ?>" href="">WordPress <?php
    bloginfo('version'); ?></a>.</p>

<?php wp_footer(); ?>


Comments powered by Disqus