dashboard login logo
Go to functions.php file in your website theme and paste this code bottom of that file..
// Custom logo for Dashboard
function nst_dashlogo() {
echo '<style type="text/css">
.login h1 a {background-image: url('.get_bloginfo('stylesheet_directory').'/images/dash-logo.png) !important;
background-size: 100% !important;
width:210px;
}
</style>';
}
add_action('login_head', 'nst_dashlogo');
// Dashboard Logo title text
function dash_logo_url_title() {
return 'Nst Planet , Information Hub';
}
add_filter( 'login_headertitle', 'dash_logo_url_title' );
// Dashboard Logo link
function nst_dashlogo_link() {
return home_url();
}
add_action('login_headerurl', 'nst_dashlogo_link');
After paste this code.. upload the image with name “dash-logo.png” to your theme /images folder.. or you can change name.
I like your writing style really loving this website .
Thanks @Astolfi 🙂
Really helpful.. thanks Narender!
Thank you Narender for sharing this ..