Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mmicrosysm

    (@mmicrosysm)

    UPDATE: Or even edit it to Menu!

    Thread Starter mmicrosysm

    (@mmicrosysm)

    I tried this in the fuctions.php

    function replace_sitename( $wp_admin_bar ) {
        $wp_admin_bar_site_name=$wp_admin_bar->get_node('wp-admin-bar-site-name');
        $newtitle = str_replace( 'Sitename,', 'Menu,', $wp_admin_bar_site_name->title );
        $wp_admin_bar->add_node( array(
            'id' => 'wp-admin-bar-site-name',
            'title' => $newtitle,
        ) );
    }
    add_filter( 'admin_bar_menu', 'replace_sitename',25 );

    All it did was move the text I’m trying to modify to the right one space O_o

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Admin Bar Help’ is closed to new replies.