Three ways to remove "Proudly powered by WordPress"

wordpress logo
wordpress logo | Source

If you want to remove or replace the message "Proudly powered by WordPress" from the bottom of a theme, for example TwentyTen, you can follow 3 procedures. I suggest you to work on a child theme created from the parent theme instead of hacking the original theme code. That's to avoid problems in case of updates from the original one.

1. Quick remove only

Log in your website as admin and go to: Appearance -> Editor and choose the file style.css.

Look for the text:

#site-generator {  
    font-style: italic;  
    position: relative;  
}

and replace it with:

#site-generator {  
    display: none;    
}

2. Quick replacement

Always from the Editor, now look for the file footer.php and the internal text:

 <div id="site-generator">  
     <?php do_action( 'twentyten_credits' ); ?>  
     <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator">
         <?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?>
     </a>  
 </div>  

Well, you have different choices here: just remove text above from your footer.php or replace it with your customized text.

3. The best way

I have found a better solution in this post by a Wordpress lead developer: in this case create a file called functions.php for your child theme (you can put the same in the original theme code but as I already told you, working with a child theme is the best solution) like this:

<?php  
 class Translation_Util {  
  function filter_gettext($translation, $text, $domain) {  
  $translations = &get_translations_for_domain( $domain );  
  if ( $text == 'Proudly powered by %s.' ) {  
   return $translations->translate( 'Proudly powered by %s and your-name-here.' );  
  }  
  return $translation;  
  }  
 }  
 add_filter('gettext', array('Translation_Util', 'filter_gettext'), 10, 4);  
 ?> 

gettext is one of a set of filters in the translation functions in wp-includes/l10n.php which also include gettext_with_context, ngettext, and ngettext_with_context.

Method Poll

What is your favourite method:

  • First: changing style.css
  • Second: changing footer.php
  • Third: adding filter in functions.php
See results without voting

More by this Author

  • How To Parse Html In Java - Part 2
    0

    In the first article we saw how to parse html in Java using the libraries: Jsoup HtmlCleaner Internal Swing SDK parser This time we will see other useful libraries to parse html like: TagSoup HTML Parser...

  • How To Parse Html In Java
    7

    Examples and information about how to parse html in Java using: Jsoup, HtmlCleaner, Internal Swing SDK parser, TagSoup, HTML Parser, JTidy, NekoHtml, Cobra, HotSAX and Jerico HTML Parser.

  • How to Create a Chat Room in Java
    0

    A quick and easy way to build your free and personal chat room in Java.


Comments 1 comment

Nitin Gupta 2 months ago

Only part that needs to take care, is to make sure that domain name and hosting space should not be on the same provider, I am the owner of multiple websites, hence i have to search for company that will provide the cheapest domain renew charges, and came across a website http://www.gethost.in, that helps me in reducing the charges to 50%.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working