How to remove WordPress admin bar

WordPress is the powerful CMS. WordPress provide awesome functionality to the admin bar. Using admin bar we can quickly access some admin feature form the front side of the WordPress. But many times we don’t want to display its front side. So let’s see how to remove WordPress admin bar.

For removing WordPress admin bar we just need to add the single line of code on “functions.php” file. Let’s open your current/active theme “functions.php” file. Then write the below code for removing admin bar.

show_admin_bar( false );

Also, For the latest version of WordPress, you can use the filter for removing the admin bar from the front side.

add_filter('show_admin_bar', '__return_false');

It’s too easy to remove WordPress admin bar.

 

Published by

Sherya

Hello there, I am developer currently working with the company at Pune and part-time freelancer. Always I welcome a new opportunity.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s