Forums

Ho to remove wordpress logo/pages from admin bar? (2 posts)

  1. unseenmagik
    Member
    Posted 3 months ago #

    The wp admin bar on the front and backend of the site has a wordpress logo on it with links to the forums and a few other pages.

    How do I remove this entire submenu?
    Ok, i have found this code but i dont know where to put it. ?

    function annointed_admin_bar_remove() {
            global $wp_admin_bar;
    
            /* Remove their stuff */
            $wp_admin_bar->remove_menu('wp-logo');
    }
    
    add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove', 0);

    Any help please, what file do i add this piece of code too ?

    information was found here: http://wordpress.org/support/topic/filter-to-remove-wordpress-logopages-from-admin-bar

    Thanks
    Ben

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Put it in your theme's function.php OR make a plugin.

    Also this is not an alpha/beta question (which today would mean you're using 3.4). Moving to general.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.