- This topic has 0 replies, 1 voice, and was last updated November 13, 2016 at 5:42 pm by .
-
Topic
-
Turn Off the Admin Toolbar in Settings
To remove the toolbar from your site, go to Users > Your Profile. Scroll down to “Toolbar” and check “Show Toolbar when viewing site.”
And that’s all you need to do. The Toolbar will no longer appear on your site.
While the toolbar will stop displaying on the front-end of your site, it will continue to show on the backend of your site. It’s best to leave the backend toolbar as it is – it does contain important information about your site, after all.
Remove the Admin Toolbar with Code
if ( ! current_user_can( ‘manage_options’ ) ) {
show_admin_bar( false );
}add_filter(‘show_admin_bar’, ‘__return_false’);
Placing the above line of code in theme’s functions.php file will prevent the Toolbar from rendering on the front end of your site.
- You must be logged in to reply to this topic.