By default, as long as your are logged in at a WordPress site, you will see a admin bar at the top. However, if you are site admin, i’m sure you do not wish to show the admin bar to non admin member. Of course this will also avoid many unnecessary issue.

To hide admin bar from subscriber or non admin in WordPress, follow the steps below:-
Advertisements
- Open your theme functions.php and paste the code below to the bottom of the file.
/** * Remove admin bar from non admin user */ add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } } - Once done, all he non member will not see the admin bar again.
Related posts:
Bootstrap 3: Responsive image align center
WordPress WP-Cache with GZip Compression enable
How to send email from different address in Gmail
How to change 'Out of Stock' text in Woocommerce
Redirect to maintenance page during upgrade using .htaccess
How to whitelist email address in Google App Mail (Free Edition)
How to remove Yahoo connections?
Free WordPress 2 Columns Kubrick Plain Theme - Red
Share this with your friends:-