B-219 Sec-55 Noida, India
+918010221733

Hide admin bar in front end on a wordpress website

Please copy this code in functions.php file of your theme

function hide_admin_bar_from_front_end(){
  if (is_blog_admin()) {
    return true;
  }
  return false;
}
add_filter( ‘show_admin_bar’, ‘hide_admin_bar_from_front_end’ );

(Visited 64 times, 1 visits today)

Leave a reply