So far in the child theme tutorials for the WordPress Twenty Eleven theme, we’ve created a custom CSS file and custom header. Now, let’s add a custom footer and remove “Powered by WordPress”.
The first step to having a custom footer for your Twenty Eleven child theme is to copy the footer.php file from the parent Twenty Eleven theme into your directory. You will find this file on your server here:
/wp-content/themes/twentyeleven
Once you have copied this file over to your Twenty Eleven child theme folder (for me the location on my server is /wp-content/themes/twentyeleven-child), you are done! You have a custom footer file…but on your blog, everything will look the same. That’s because while you technically have created a new footer for your blog, no code has actually changed. We’ll fix that in the next section.
Powered by WordPress! Woo-hoo!
I can’t fault WordPress for wanting to drive traffic to their website, especially given they provide the Twenty Eleven theme for free. But that doesn’t mean that “Powered by WordPress” in the footer doesn’t look goofy. Luckily, it’s not too difficult to change.
Open up the header.php footer.php file from your child theme using your favorite text editor. In this file, you’ll find the following code:
<?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>
All we need to do to remove “Powered by WordPress” is to comment out this code using HTML comment tag, like the following:
<!-- <?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> -->
Once you hit save, you’re all set. No more “Powered by WordPress”, no more text at all. Just a blank footer.
What if I want to put my own links in the footer?
Of course, just because you don’t want “Powered by WordPress” in the footer doesn’t mean you don’t want any links in the footer. If you want to add your own text/links, re-open your footer.php file and place your text in the same location as the code we just commented out.
For example, if I wanted to put “© Randy Zwitch – 2011″ in the footer, I would place this text between the opening and closing div tags for “site generator”:
<div id="site-generator"> <!-- <?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> --> © Randy Zwitch - 2011 </div>
It’s as easy as that to have a custom footer message! You can get even more tricky by widgets and ads and tag clouds…but there’s something to be said for a clean, sleek design. So I’ll stop there




