Please or Register to create posts and topics.

What do you use to hide the admin bar?

Hi @asgaros,

right now we use S2Members for people to register on our page and to log in to wordpress. We have no need anymore for S2Members and want to remove it while still giving people access to the WP standard registration and login functions.

My question; Could you kindly let me know, how you streamlined the login/registration/admin bar process here in this support forum, so that the admin bar is hidden and only shown when editing the profile but hiding all submenues there except the editing page?

In my case the editing page is full of submenue entries of other plugins probably confusing people when using it.

Even in your case you can navigate to the dashboard and see things like “

Any guidance of having a light weight solution would be highly appreciated. In particular which plugins you would recommend for hiding items.

Thank you,

Matt

 

Hello @mexl

I just added the following code to my themes functions.php file:

show_admin_bar(false);

All other things are generated automatically by WordPress. Also keep in mind that you (as a site-owner) see more things there than normal users.

mexl has reacted to this post.
mexl
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hi @asgaros,

thank you, perfect, the function worked as expected. Unfortunately I have a submenu item in the frontend, which I do not want regular users to see. I contacted the developer.

All the best!

 

Asgaros has reacted to this post.
Asgaros

Anyway to remove the admin for all user roles except administrator? as the site admin I would like to use the dasboard.

Using:

show_admin_bar(false);

Does not allow me to use dashboard interface…

Hey @maxgallows,

to hide the admin bar for specific users roles you need to add a condition. Add the following code in your child themes functions.php:

// hide admin bar if user is not admin or super admin
if (!current_user_can('manage_options')) {
show_admin_bar( false );
}

 

Asgaros and MaxGallows have reacted to this post.
AsgarosMaxGallows
Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.

Thank you

qualmy91 has reacted to this post.
qualmy91