How to hide the top admin bar at the frontend in WordPress?

How to hide the top admin bar at the frontend in WordPress?

Team Leader Asked on February 11, 2017 in WORDPRESS.
Add Comment
1 Answer(s)

    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');
    
    
    Team Leader Answered on March 9, 2017.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.