Wednesday, 10 September 2014

How to Hide Top Adminbar in WordPress

Another Wordpress Theme Development  Tips , How To Hide Wordpress Top  Admin Bar . If you Don't want Show ou your admin bar you need to just paste this code
 into Appearance > Editor > Function.php  .  Copy this Code 

add_action('set_current_user', 'csstricks_hide_admin_bar');
function csstricks_hide_admin_bar() {
if (current_user_can('edit_posts')) {
show_admin_bar(false);
}
}

And  Paste In Below . 

And Now Reload your website . That's it . 

Happy WordPress Theme Development .