How to remove the top bar in WordPress for logged-in users

Edit the functions.php file in within your theme and add the following line to it

add_filter( 'show_admin_bar', '__return_false' );

This will remove the top bar when a user is logged-in.

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.

Menu