Hide WP Admin Bar

What’s the way to hide the WP Admin Bar for logged in users?

I now have some code in Custom CSS what's doing the job for me.

Hello HansRuedi,

Setting present in WordPress to hide the admin bar for logged in users, please navigate to your profile in WordPress backend (/wp-admin/profile.php). Here uncheck the Toolbar checkbox as shown in attached screenshot.

Let me know if it works for you.

Attachment Link(s):


Hi Manish,

Thanks for help. I was looking for a global switch in InspireBook to turn off the Admin Bar. With my Custom CSS I now have hidden the user name, avatar and the BP search field. I like the way you have it in your theme (rtp-buddypress-menu-wrapper ).

This worked for me... inserted the code in bp-custom.php in /plugins/ folder ///Hide admin bar by default for users add_action("user_register", "set_user_admin_bar_false_by_default", 10, 1); function set_user_admin_bar_false_by_default($user_id) { update_user_meta( $user_id, 'show_admin_bar_front', 'false' ); update_user_meta( $user_id, 'show_admin_bar_admin', 'false' ); }

Hope it helps. Cheers!