Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter worldsdream

    (@worldsdream)

    It seems to come from my theme, the ID is presscore-icons-bar

    When i add that to capability, nothing happens

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    When you add capability you add to the user some functionality which is protected by that capability. You can not remove something by adding capability.

    I don’t sure that it’s possible with Pro version. Tests are needed.

    Thread Starter worldsdream

    (@worldsdream)

    I will sent you the theme to your e-mail, so you can upload it to your stage environment and see if you can hide it with the free plugin or with the pro version.

    thanks

    • This reply was modified 8 years, 5 months ago by worldsdream.
    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    I will look what we can do with it.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    User capability will not help hear. “Icons Bar” is added without any conditions for any user. This code removes it:

    
    add_action('wp_before_admin_bar_render', 'remove_icon_bar', 21);
    
    function remove_icon_bar() {
      global $wp_admin_bar;
      
      $wp_admin_bar->remove_node('presscore-icons-bar');
    
    }
    

    I will investigate why Pro version “Admin Access Menu” does not remove it under “block not selected” model.

    Thread Starter worldsdream

    (@worldsdream)

    Thank you for the snippet. I will add it to the functions.php of the child theme at the moment.

    Other plugins can hide it, so I’m sure Admin Access Menu will too in one of the next updates.

    This is the best plugin out there with the best developer.

    As always keep it up and this is why I love working with URE. You never let me down!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove "icons bar" from menu bar’ is closed to new replies.