Add the following code to functions.php to remove it from everyone except the Administrator user level:
add_action('after_setup_theme', 'no_admin_bar');
function no_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
...
Another way to hide admin bar is to add
if ( !current_user_can( 'manage_options' ) ) {
add_filter( 'show_admin_bar', '__return_false' , 1000 );
}
The users who don't have privileges to access Settings page, won't be able to see the admin bar.
Developers can use admin_bar_menu action to remove items from WordPress admin bar or toolbar.
add_action('admin_bar_menu', 'remove_wp_logo_from_admin_bar', 999);
function remove_wp_logo_from_admin_bar( $wp_admin_bar ) {
$wp_admin_bar->remove_node('wp-logo');
}
Above code removes WordPr...
You can add below hooks to add your own logo and link to replace default wordpress logo.
To add custom logo
function custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.png) !important; backgro...