with this method you can Easily hide/remove the front end Toolbar for logged in users.
Simple way to hide this bar is seen in the image below:
Visable only for admin In your functions.php just write this code
if ( !current_user_can('administrator') )
show_admin_bar( false );
with this just admin user can see toolbar but normal user cant see.
if you want for all use this
show_admin_bar(false);
hide it for all users who can’t edit posts
add_action('set_current_user', 'tutorialworld_hide_admin_bar');
function csstricks_hide_admin_bar()
if (current_user_can('edit_posts'))
show_admin_bar(false);
how to hide/remove wordpress toolbar
No comments:
Post a Comment