September 16, 2013

Hide WordPress Admin Bar On Website

When creating bespoke themes for customers, you’ll often find that WordPress will show the admin bar on the main page for all users, or at least logged in users at the top of the page. You will most likely not want to show this if the website is for a business or other establishment. You can hide the admin bar on the main website by including the following filter in your functions.php of your theme, or create a plugin and do it that way.

add_filter( 'show_admin_bar', '__return_false' );

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php