Skip to content

Commit

Permalink
replace howdy in the admin bar with welcome. thank to jamescarrier
Browse files Browse the repository at this point in the history
  • Loading branch information
randyjensen committed May 17, 2012
1 parent 65a1ded commit 2d2cd06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README
Expand Up @@ -9,6 +9,10 @@
Ian Stewart for his Toolbox theme and Paul Irish for his HTML5 Ian Stewart for his Toolbox theme and Paul Irish for his HTML5
Boilerplate. Boilerplate.


## Recent Changes (0.9.1)

1. Replace 'Howdy' in the admin bar with Welcome. Thank to jamescarrier for this.

## Recent Changes (0.9.0) ## Recent Changes (0.9.0)


1. Code for Apple Touch icons updated in header.php. Thanks to jamescarrier for this. 1. Code for Apple Touch icons updated in header.php. Thanks to jamescarrier for this.
Expand Down
8 changes: 3 additions & 5 deletions functions.php
Expand Up @@ -108,8 +108,7 @@ function customize_meta_boxes() {
/** /**
* Remove superfluous elements from the admin bar (uncomment as necessary) * Remove superfluous elements from the admin bar (uncomment as necessary)
*/ */
function remove_admin_bar_links() function remove_admin_bar_links() {
{
global $wp_admin_bar; global $wp_admin_bar;


//$wp_admin_bar->remove_menu('wp-logo'); //$wp_admin_bar->remove_menu('wp-logo');
Expand All @@ -126,10 +125,9 @@ function remove_admin_bar_links()
//add_action('wp_before_admin_bar_render', 'remove_admin_bar_links'); //add_action('wp_before_admin_bar_render', 'remove_admin_bar_links');


/** /**
* Replace the default welcome 'howdy' in the admin bar with something more professional. * Replace the default welcome 'Howdy' in the admin bar with something more professional.
*/ */
function admin_bar_replace_howdy($wp_admin_bar) function admin_bar_replace_howdy($wp_admin_bar) {
{
$account = $wp_admin_bar->get_node('my-account'); $account = $wp_admin_bar->get_node('my-account');
$replace = str_replace('Howdy,', 'Welcome,', $account->title); $replace = str_replace('Howdy,', 'Welcome,', $account->title);
$wp_admin_bar->add_node(array('id' => 'my-account', 'title' => $replace)); $wp_admin_bar->add_node(array('id' => 'my-account', 'title' => $replace));
Expand Down
2 changes: 1 addition & 1 deletion style.css
Expand Up @@ -4,7 +4,7 @@ Theme URI: http://www.thewebsite.com
Author: Randy Jensen & Randy Hoyt Author: Randy Jensen & Randy Hoyt
Author URI: http://www.handcraftedwp.com Author URI: http://www.handcraftedwp.com
Description: HTML5 starter theme based off Ian Stewart's HTML5 Toolbox Theme with other goodies added plus chunks of Paul Irish's HTML5 Boilerplate mixed in for good measure. Shake well. Description: HTML5 starter theme based off Ian Stewart's HTML5 Toolbox Theme with other goodies added plus chunks of Paul Irish's HTML5 Boilerplate mixed in for good measure. Shake well.
Version: 0.9.0 Version: 0.9.1
*/ */


/* html5doctor.com Reset Stylesheet \\v1.6.1 \\ Last Updated: 2010-09-17 \\ http://richclarkdesign.com \\ @rich_clark */ /* html5doctor.com Reset Stylesheet \\v1.6.1 \\ Last Updated: 2010-09-17 \\ http://richclarkdesign.com \\ @rich_clark */
Expand Down

0 comments on commit 2d2cd06

Please sign in to comment.