WordPress.org

Ready to get started?Download WordPress

Forums

Renaming "+NEW" on admin bar (3 posts)

  1. mozalan
    Member
    Posted 1 year ago #

    Good morning people! How do we get it renamed? I've used functions.php file to rename what's under that menu but not the thing itself. I need it to say something else instead of "NEW" - is it possible, if so, how?

    This is the link to what I mean:

    http://s24.postimg.org/erw2urfet/admin_bar_NEW_rename.jpg

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    you could add this to functions.php of your currently used theme:

    add_action( 'wp_before_admin_bar_render', 'personalize_adminbar_appearance' );
    
    //adminbar//
    function personalize_adminbar_appearance() {
            global $wp_admin_bar;
    
            $wp_admin_bar->add_menu( array(
                    'id'    => 'new-content',
                    'title' => '<span class="ab-icon"></span><span class="ab-label">' . 'Novelty' . '</span>',
                    'meta'  => array(
                            'title' => 'Add Novelty',
                    ),
            ) );
    }
  3. mozalan
    Member
    Posted 1 year ago #

    You ARE a star man! Thanks a lot for this!

Topic Closed

This topic has been closed to new replies.

About this Topic