![]() Place either of the following in functions. #wpadminbar Disable the Admin Bar for non-Admins onlyĮxpanding on the previous example, here are two snippets that disable the Admin Bar for non-Admins and Editors. Theme’s style.css (or other stylesheet): /* hide the admin bar */ To cleanly disable the Admin Bar for all users of your theme (and thus your site), add this snippet to your theme’s functions.php file: // disable the admin barĪlternately, you may use this method, which filters the show_admin_bar function: // disable the admin barĪdd_filter('show_admin_bar', '_return_false') Īnother option is to hide the Admin Bar using CSS. Disable the Admin Bar for all users of the current theme Fortunately, we’re just getting started, so read ahead to see more efficient ways of disabling and modifying the WordPress Admin Bar. Unfortunately, this gets kind of tedious when customizing profiles for many users. Thus, to change your preferences, just visit Users ▸ Your Profile and choose your options as seen here:
0 Comments
Leave a Reply. |