WordPress.org

Support

Support » Themes and Templates » Renaming " NEW" on admin bar

Renaming " NEW" on admin bar

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael
    Forum Moderator

    @alchymyth

    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',
                    ),
            ) );
    }

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Renaming " NEW" on admin bar’ is closed to new replies.