Custom logo with custom URL in WordPress login page

/* Custom Logo */
function custom_login_logo() {
	echo '
	h1 a { background-image: url('.get_bloginfo('url').'/wp-content/uploads/2020/02/logo.png) !important; }
	.login h1 a{ background-size: 320px !important; width: 320px !important; }
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');

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s