@mechwiy
Active 6 years, 1 month ago
-
Varun Dubey replied to the topic wordpress top bar in the forum Installing BuddyPress 6 years, 7 months ago
@mechwiy You can add a new class to the body based on role
Added following codes inside child theme functions.php or using snippet pluginadd_filter( 'body_class','adminbar_body_classes' );
function adminbar_body_classes( $classes ) {if ( !current_user_can( 'level_10' ) ) {
$classes[] = 'no-adminbar';
}return $classes;…[Read more]