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:

All we need to do to remove “Powered by WordPress” is to comment out this code using HTML comment tag, like the following:

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


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

Comments

  1. 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.

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

    • Randy Zwitch says:

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

  3. CaroleHarrisHayes says:

    Is there any way to center this?  

  4. Hi,
     
    Instead of coyping footer.php in your child theme folder can we make the same changes using function.php?
    Ashok Koparday

%d bloggers like this: