Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to adjust admin menu bar?


  • simbaclaws
    Participant

    @simbaclaws

    Hey everyone,
    I’m trying to adjust the admin bar for logged out users so that there is no register and login button and that the anonymous user profile shows up with register, logout, password etc.

    I’ve been searching for a while now and haven’t been able to find out how to do it.
    I’ve tried doing it through my functions.php by using $wp_admin_bar->remove_menu and $wp_admin_bar->add_menu. I’ve even put a script in to check what the node ID’s were of my menu’s in order to be able to remove or add them.

    I’ve seen previous posts where people said that this had something to do with either your theme or your plugins, so I disabled all plugins except buddypress and enabled twenty fifteen theme to see if it changed anything. Which it did not.
    I’m using wordpress 4.4.2 with buddypress 2.5.1 on my localhost machine.

    I’ve also looked at the following page:

    Modifying the Toolbar

    But it seems like this is a deprecated-guide?
    Does anyone know of the current way to make this work?
    I basically want the same wp-admin-bar-my-account to work for logged out users. Which is displayed as node ID: my-account.

    I have already set my site to allow users to register and I have also made sure that logged out users are capable of seeing the bar in my buddypress settings. Which works because I can see the bar with a login and register button on it but not with the my-account profile on it. And I can also use the registration form for new users.

    Does anyone have any ideas on how I can make this work?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar