Support » Plugin: Admin Bar Wrap Fix » You can just hide items instead

  • Resolved


    This was great for me but I still had issues because stuff was collapsed too far.

    I hid lots of the cruft I didn’t need instead:

    // Remove items from admin bar
    function customize_admin_bar($wp_admin_bar) {
      // Remove Howdy text
      $my_account = $wp_admin_bar->get_node('my-account');
      $wp_admin_bar->add_node( array(
        'id' => 'my-account',
        'title' => '',
      ) );
    add_action('admin_bar_menu', 'customize_admin_bar', 999);

    Hope this helps somebody 😉

Viewing 1 replies (of 1 total)
  • Plugin Author KZeni


    Yeah, this plugin addresses things when you have more than the standard set of items in the admin bar and/or a smaller browser window (before switching over to the mobile menu), but then it doesn’t address things when one has a truly excessive/extreme number of items which then could lead to each item being truncated more than desired (trying to keep icons as identifiers, if the menu bar item[s] have them, by way of favoring the truncation of the text within the menu item[s] first… keeping things as usable as possible with the most simple/universal solution possible.)

    That said, this should still be better than having all of those items overflow and show on top of the website like it otherwise would.

    There is a potential to have this plugin evolve into letting you remove specific menubar items via a settings page & checkboxes for various known/support plugins & their menubar items to selectively remove (in addition to WordPress’ built-in menubar items.) However, this is currently a patch-as-a-plugin where it’s at least making it not actively problematic where it’s overlapping your website’s content like it otherwise would without this while being harmless when that isn’t the case (with it potentially being officially adopted per & This patch being officially implemented may be the time this plugin evolves into offering this feature, but it could happen sooner depending on the demand.

    It is nice to see you further improved things for your specific site’s needs using your own custom solution (which should/does work well alongside this plugin & is rather straightforward.) I mean, there really is a huge variety of plugins & menu items to potentially account for removing as well as what people would prefer to have removed so that really seems to be the way to go for now if you really want items not shown for a specific site.

Viewing 1 replies (of 1 total)
  • The topic ‘You can just hide items instead’ is closed to new replies.