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

  1. mozalan
    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:


  2. alchymyth
    Forum 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' );
    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
    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