• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Klong Designs

Klong Designs

Wordpress Designer, Developer and Web Programmer

  • Home
  • About
  • Services
    • WordPress
      • Theme Design
      • Plugin Tweaks
      • Site Migrations
    • Graphic Design
    • Custom Programming
      • Responsive Design
    • SEO
  • Articles
    • Facebook
    • HTML
    • jQuery
    • PHP
    • WordPress
  • Contact/Quote Request

WordPress: Say Goodbye to “Howdy”

August 21, 2013 By Chris Klongpayabal Leave a Comment

WordPress should work how you want it to. There are hundreds, if not thousands of plugins out there to help you get WordPress working how you want. However, one thing has long bothered me, and that’s the “Howdy,” in the top right of the admin panel. Call me crazy, but I’ve never like the Howdy part. Since WordPress is so versatile, I set out to find a way to change that text to something more professional, like “Welcome back,”. Below is a short piece of code that you can paste into your theme’s function file that will allow you to do just that:

say-goodbye-to-howdyUPDATED! Since first publishing this, I have found a faster, easier way to replace the Howdy text.  I’m including both methods here for archival purposes:

/*****************************************************
 	REPLACE HOWDY
	This function replaces the "Howdy" text next to a
        user with a more professional
	"Welcome Back, "
***********************************************************
function change_howdy($translated, $text, $domain) {
    if (false !== strpos($translated, 'Howdy'))
        return str_replace('Howdy', 'Welcome Back', $translated);
    return $translated;
}

add_filter('gettext', 'change_howdy', 10, 3);

 


Old way to replace text:

/**REPLACE HOWDY**/
// Customize:
$nohowdy = "Welcome Back";

// Hook in
if (is_admin()) {
add_action('init', 'ozh_nohowdy_h');
add_action('admin_footer', 'ozh_nohowdy_f');
}

// Load jQuery
function ozh_nohowdy_h() {
wp_enqueue_script('jquery');
}

// Modify
function ozh_nohowdy_f() {
global $nohowdy;
//echo <<<JS
?>
<script type="text/javascript">
//<![CDATA[
var nohowdy = "<?php echo $nohowdy; ?>";
jQuery('#user_info .hide-if-no-js')
.html(
jQuery('#user_info .hide-if-no-js')
.html()
.replace(/Howdy/,nohowdy)
);
//]]>
</script>
<?php
//JS;
}
/**END REPLACE HOWDY**/

 

With that little piece of code, you can say goodbye to “Howdy”. Please note that this works with the WP 3.2 and greater.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Quick Quote

Footer

Services

Graphic Design - This includes (but is not limited to) logos, banners, signs, posters, business cards, rack cards, brochures, flyers, and postcards.
Website Design - This includes (but is not limited to) theme design, logo design, banner ads, post graphics, pinterest-based images, image maps and navigation design.
Website Programming - This includes (but is not limited to) HTML, CSS, Javascript, PHP, jQuery, SCSS and LESS, as well as MVC frameworks, Theme updates and tweaks, plugin updates and tweaks, Multisite setup, plugin design and customization.
SEO Work - This includes (but is not limited to) analytics review, site SEO review, video SEO, ongoing SEO updates, sitemap setup and goal tracking.
Maintenance Work - This includes (but is not limited to) Keeping WordPress up-to-date, running backups of your site and database, and answering any questions you have about your site.
If you would like more information, please fill out the quick quote form. Thanks!

Follow

A Few Client Sites

  • 5 Dollar Dinners
  • Get Rich Slowly
  • The Happy Housewife
  • I Save A2Z
  • Hip Homeschool Moms
  • Redefined Mom
  • Queen Bee Coupons
  • More with Less Today
  • Saving Advice
  • One Crazy Mom

Copyright © 2023 · Klong Designs