How To Hide The Admin Bar On The Front End Of WordPress Websites

Amanda Lucas
on
April 1, 2021

Here's a quick how-to on how to hide the wp-admin bar on the front end of WordPress websites.

wp admin bar on front end

Here’s a quick guide on how to hide the wp-admin bar on the front end of WordPress websites.

As I use Oxygen Builder for most site builds, I use a plugin called Code Snippets for adding additional functionality. Insert the following code into a new snippet and you will no longer see the admin bar on the front end when viewing a website.

add_filter('show_admin_bar', '__return_false');

I also mentioned I use a plugin called Dashboard Switcher on all client sites as I create custom walkthroughs for their site and any other tutorial they need. I also add my support form for them to log tickets – obviously you would only do this on sites you maintain. You essentially build your layout in whatever builder you use and disable any header and footer on that page. Check it out on my affiliate link: https://amandalucas.eu/dash. I only ever recommend products I use myself.

I hope you find this useful for your projects!

Leave the first comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Amanda Lucas

Amanda Lucas

Amanda Lucas runs a web design agency in Ireland called Itchy Fingers Design. She enjoys creating websites that help support business goals and growth and sharing her knowledge.