Removing “Powered by WordPress” in Twenty Eleven

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 :)

12 comments
gossipgodd
gossipgodd

An epitomize appropriate he aswell absent the aperture to the bank on his aboriginal attempt. And still, the Leafs accept been at pains to abstain anecdotic the abrasion as a concussion.Yet not aggregate is <a href=" http://www.mapleleafsproshop.com/Nicklas_Backstrom_Jersey">Nicklas Backstrom Jersey</a> in Leaf Land.Here are a few of the Leafs' weaknesses as the postseason nears.

Leoncio25
Leoncio25

Leoncio. Although I have been working for a long time looking at the list above make me realize that I have still a lot to learn. So little time,So much to do.I was searching some website on google then I found this,Its a great website and I love the content of this site I have a great website You can Visit at: www.ReelTuner.com You can Watch Your Latest Videos, TV Shows (Series) and Japanese Animation (Anime) Online Free. manga, animation,anime, animated girls series, anime girls shows,anime girls series, tv shows, tv series, tv programmes, watch online, stream online, watch tv online, watch tv in UK online, watch tv in USA online, online free,videos free, shows free, anime free. [URL=ReelTuner.com]manga[/URL]

Gaurav Tiwari
Gaurav Tiwari

Excellent guide. But is it not illegal to remove the credit of WordPress?

Randy Zwitch
Randy Zwitch

Hi Guarav -

WordPress code is distributed under the GNU General Public License. Basically, you can make any modifications you'd like. If you choose to distribute your code as a derivative, you are supposed to give credit inside the code referencing the original work.

http://wordpress.org/about/gpl/

In any case, I'm just distributing the idea that it can be changed, so it's not a problem. And, anyone who looked at my source code would see this is a Twenty Eleven based theme. :)

Matt Hobin
Matt Hobin

Hi Randy,

Nice article and very useful code changes to customize this a bit more. I think you meant to say open the footer.php file in the first line where we locate the first bit of code. No biggie, I figured that out easy enough! Thanks again.

Leoncio25
Leoncio25

Mike Here. Although I have been working for a long time looking at the list above make me realize that I have still a lot to learn. So little time,So much to do. I was searching some website on google then I found this, Its a great website and I love the content of this site I have a great website You can Visit at: http://cheapoilchangecoupons.com About website It is of Cheap oil change coupons can save tons of money on car maintenance.  Oil change coupons for Walmart, Jiffy Lube, Firestone, Sears, Goodyear and more. you can get oil change coupons coupons for oil change,cheap oil change,meineke coupons,midas coupons