Admin bar should appear only for logged user, but for some reasons it’s shown all the time.

I tried few plugins, but remove the admin bar for all user, preventing frond end changes.

To remove the admin bar only for not logged users, put this in your header.php above the </head> tag:

<?php if ( !is_user_logged_in() ){ ?>
	<style>
            #wpadminbar{ display:none; }
         </style>
<?php } ?>

 

 

Hide admin bar in WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *