WordPress.org

Ready to get started?Download WordPress

Forums

Admin Bar Help (3 posts)

  1. mmicrosysm
    Member
    Posted 1 year ago #

    I need help removing the Title Text on the left side of the Adminbar just right of the WP Logo. I have a Logo in place and no need for the Title/Site Text.

    EX. http://cdn.wpbeginner.com/wp-content/uploads/2012/05/adminthumbnew-180x180.png

  2. mmicrosysm
    Member
    Posted 1 year ago #

    UPDATE: Or even edit it to Menu!

  3. mmicrosysm
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic