There’s a number of plugins that will allow you to remove the wp-admin top bar, just search the plugin directory.
Hide Admin Bar
Thank you for your answer, what about the notification, how can I put it beside the buddypress link in the menu, cuz I choosed the buddypress link in the menu and despite that there are no notifications displayed beside of them.
edit : like you can see in the screenshot here : http://image.noelshack.com/fichiers/2018/21/6/1527340763-menulinks.png I took the links directly from the buddypress category
Isn’t there a lengthy discussion on that a couple of posts down from this one?
ah yes I just saw it, I’ll try it, so there are no options to do it automaticly we have to go through the code ?
Ok thank you for your answers.
About the plugin that you gave me, what does he do ? cuz isn’t it more interesting to do directly “display:none” in the css instead using the plugin ? if of course it does the same thing cuz if it does, using the plugin will make the website heavier than using directly the “display;none” directly in the css code.
@mechwiy You can add a new class to the body based on role
Added following codes inside child theme functions.php or using snippet plugin
add_filter( 'body_class','adminbar_body_classes' );
function adminbar_body_classes( $classes ) {
if ( !current_user_can( 'level_10' ) ) {
$classes[] = 'no-adminbar';
}
return $classes;
}
after that add following inside custom CSS using customizer
html body.no-adminbar {
margin-top: -32px !important;
}
body.no-adminbar #wpadminbar {
display: none;
}