Last active
November 29, 2017 13:15
-
-
Save mosne/f2174b5ae087cae3837388d0c5e04f90 to your computer and use it in GitHub Desktop.
qTranslateX fix for wordpress sitename in wp admin bar ellipsis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'admin_bar_menu', 'qtranslatex_fix_sitename', 999 ); | |
function qtranslatex_fix_sitename( $wp_admin_bar ) { | |
global $wp_admin_bar; | |
$updates_node = $wp_admin_bar->get_node( 'site-name' ); | |
$updates_node->title = get_bloginfo('name'); | |
$wp_admin_bar->add_node($updates_node); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment