• Resolved ryan112ryan

    (@ryan112ryan)


    Trying to pare down what’s on my admin bar in WP and want to remove the hummingbird button link on my admin bar. I’ve disable all mentions of the admin bar in settings, but it’s still showing with “see this page unminified”

    I’ve turned off the admin bar setting under Hummingbird>Caching>Settings>”Show Clear Cache button in Admin area” Cleared cache, logged out and back in, cleared browser cache, then waited a few days, still persists.

    Anyone know how to remove this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @ryan112ryan ,

    I’m sorry for the delay on our side.

    There is no option to remove that element after Asset Optimization is enabled.
    However, you can try hiding it with this code snippet:

    add_action('admin_head', 'wpmudev_hide_hbao_menu');
    
    function wpmudev_hide_hbao_menu() {
      echo '<style>
     #wp-admin-bar-wphb {display: none;}
        } 
      </style>';
    }

    you can use it as Must Use Plugin (mu-plugin) or add to the child’s theme functions.php file.

    kind regards,
    Kasia

    Thread Starter ryan112ryan

    (@ryan112ryan)

    Hello, I applied the code to my functions.php child theme. Cleared my caches on the server and CDN, cleared my browser cache too. It did not change things, waited about 6 hours to see if it just needed time, but no luck. The menu item is still in the admin bar when viewing the site.

    I should note that I’ve applied similar looking code to remove other admin bar items which those worked, but this code did not.

    Please advise

    • This reply was modified 4 years, 11 months ago by ryan112ryan.
    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @ryan112ryan

    Please replace the above snippet with the following one:

    add_action('wp_head', 'wpmudev_hide_hbao_menu');
    function wpmudev_hide_hbao_menu() {
      echo '<style>#wp-admin-bar-wphb {display: none;}</style>';
    }

    Thank you,
    Dimitris

    Thread Starter ryan112ryan

    (@ryan112ryan)

    That worked! thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How To Remove Hummingbird Admin Menu Bar Link/button’ is closed to new replies.