Removing the credits in the Twenty Eleven footer

Remember – do not make changes to the Twenty Eleven theme files. Only make changes to files for your child theme.

That said, to remove the credits in the footer you’ll need to place a copy of the footer.php file located in the main Twenty Eleven theme folder into your child theme folder using ftp or your file manager. (I rarely edit files inside of WordPress just in case…).

Once you’ve copied over the footer.php file, open the one in your child theme folder in an editor.

Click continue reading to view the code.

Look for this code:

<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></div>

If you want to just remove the entire thing, add a comment out code or delete the entire block. Since I never know if I’m going to want to change things in the credit code I just comment it out.

In front if <div id=”site-generator”> and a <!– to begin. So it will look like this:

<!--<div id="site-generator">

At the end of the last div tag add –> so it will look like this:

</div>-->

That’s all there is to hiding the credits.

I’ll do another post later about changing the credits to put your own information into it so it shows up in the footer.

Leave a Reply