WordPress Tip: Hacking the Footer

Cary, NC – Ever wonder how to add your own copyright info to the footer of your WordPress website? Here’s a quick tutorial.

Hacking the Footer in WordPress

Some commercial themes come with an Option Tree function to change the footer info. But many themes don’t. Twenty-Eleven, the default theme for WordPress, doesn’t have a WYSIWYG method to change the footer in plain English.

But here’s a simple hack that works in all WordPress installations.

  1. Navigate to Appearance –> Editor.
  2. Select the footer.php file
  3. Find the div called “site generator”
  4. Add your info after <div id=”site-generator”>
  5. Comment out from <?php do_action to </a>


Here’s what it looks like:

<div id=”site-generator”> <!– start hack –>
©2012 <a href=”http://www.townofcary.org/” target=”_blank” title=”Town of Cary”>Town of Cary</a>. All rights reserved.
<!– <?php do_action( ‘twentyeleven_credits’ ); ?>
<a href=”<?php echo esc_url( __( ‘http://wordpress.org/’, ‘twentyeleven’ ) ); ?>” title=”<?php esc_attr_e( ‘Semantic Personal Publishing Platform’, ‘twentyeleven’ ); ?>” rel=”generator”><?php printf( __( ‘Proudly powered by %s’, ‘twentyeleven’ ), ‘WordPress’ ); ?></a> –> <!– end hack –>

Note that I’ve comment out where I start and end the hack. This is always a good policy in case another programmer has to revise your work at a later date.

Happy hacking!

Leave a Reply