Custom logo with custom URL in WordPress login page


/* Custom Logo */
function custom_login_logo() {
echo ‘<style type=”text/css”>
h1 a { background-image: url(‘.get_bloginfo(‘url’).’/wp-content/uploads/2016/08/Banner-1-black.png) !important; }
.login h1 a{ background-size: 320px !important; width: 320px !important; }
</style>’;
}
add_action(‘login_head’, ‘custom_login_logo’);

/* Custom URL for logo */
add_filter( ‘login_headerurl’, ‘custom_loginlogo_url’ );
function custom_loginlogo_url($url) {
return get_bloginfo(‘url’);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s