• Resolved Anointed

    (@anointed)


    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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);
    Thread Starter Anointed

    (@anointed)

    thank you Ipstenu

    this is on the ssl or php ?

    You can copy and paste the code Ipstenu wrote above into the function.php of your theme if you like. If you add it to a child theme it will keep working even if you update as well.

    Just go to wp-content>themes>then the name of the theme you want to remove the logo from

    <?php
    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);

    ———————the rest of your code below that.

    Glen Charles Rowell

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Or put it in a .php file in your mu-plugins folder 😉

    Works gangbusters and isn’t theme dependent.

    Nitro Srt

    (@pranshavs)

    Didn’t worked for me. this is my functions.php http://pastebin.com/pgvKL9uk

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    pranshavs – Make a new topic. And unless you’re seeing this not work ONLY in 3.4, you should put it in the normal troubleshooting section.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘filter to remove wordpress logo/pages from admin bar?’ is closed to new replies.