How to hide the top admin bar at the frontend in WordPress?
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.