(CodeSnippets) WordPress Login Custom Icon

function custom_login_logo() {
       echo  ‘<style type=”text/css”>
               .login h1 a {
                 background-image: url(https://www.gableshost.net/wp-content/uploads/2024/06/Website-Logo-GablesHost.png) ; // Your Logo Here
                 background-position: center center;
                 background-size: contain;
                 width: 100%;
}
</style>’;
}
add_action(‘login_head’, ‘custom_login_logo’);

function login_url(){
return “https://gableshost.net/”; // Your URL Here
}
add_filter(‘login_headerurl’, ‘login_url’);

DownLoad CodeSnippets Plugin for WordPress