Find out how to remove the WordPress top admin bar in Genesis Framework with a simple code snippet.
Have you had the WordPress admin bar getting in the way when you were developing or customizing a Genesis child theme?
What you need at that moment is to visualize the web as a visitor would do.
You could open a browser tab in incognito mode, that’s right. But there’s an even simpler option.
Personally, it comes in handy. I hope you find it useful too.
Snippet to remove the top admin bar in WordPress
Add the following code at the end of functions.php or in your functionality plugin:
Just like that.
If at any time you want to bring it back, you just need to delete or comment that line. As easy as that.
With just one line of code you can make the “annoying” administration bar disappear when you are in the middle of creating or laying out a website.
This trick is simple and practical for WordPress designers and developers.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉