How to hide the top admin bar at the frontend in WordPress?
How to hide the top admin bar at the frontend in WordPress?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
1. Turn Off the Admin Toolbar in Settings
To remove the toolbar from your site, go to Users > Your Profile.
Scroll down to “Toolbar” and uncheck “Show Toolbar when viewing site.”
2. Remove the Admin Toolbar with Code
Add the below code into your functions.php file.
This code will stop the toolbar from displaying on the front-end of your site.
add_filter('show_admin_bar', '__return_false');