Home » Web development » How to remove The admin bar on the frontend in WordPress

Here is code to Remove/ disable the top wordpress admin bar from front end in WordPress.
The admin bar on the frontend can be a bit of a pain if your using absolute / fixed positioning, or maybe you just hate it? Let’s get rid of it.

Copy paste code in Function.php of your theme root folder.

 // Remove the admin bar from the front end
add_filter( 'show_admin_bar', '__return_false' );

Array ( [0] => Web development, Wordpress Tip and Tricks )

Leave a comment

0 Comments.

Leave a Reply

You must be logged in to post a comment.