Menu Close

How to hide/show the wp admin bar

toolbar

Here, we will see how to show or hide the admin bar on the website if we want. Nowadays it is very easy to overwrite the default behavior. Follow the below snippet to remove the admin bar on your website.

add_filter( 'show_admin_bar', '__return_false' ); 

Also we have a toolbar option from wordpress dashboard. So we can directly hide or show the admin bar from the wordpress dashboard. To remove this, go to your wordpress dashboard and click the user’s profile option. Then just uncheck the toolbar button.

toolbar

Share

Posted in Web Technologies, WooCommerce, WordPress

You can also read...