Home / Admin / Replace The WordPress Logo on Login Page with your own logo
Duplicate Snippet

Embed Snippet on Your Site

Replace The WordPress Logo on Login Page with your own logo

Replace The WordPress Logo on Login Page with your own logo

Code Preview
php
<?php
add_filter( 'login_head', function () {
	// Update the line below with the URL to your own logo.
	// Adjust the Width & Height accordingly.
	$custom_logo = 'https://qcs-ghana.stromstadafroshop.se/wp-content/uploads/2024/04/logo-email-header.webp';
	$logo_width  = 100;
	$logo_height = 100;
	printf(
		'<style>.login h1 a {background-image:url(%1$s) !important; margin:0 auto; width: %2$spx; height: %3$spx; background-size: 100%%;}</style>',
		$custom_logo,
		$logo_width,
		$logo_height
	);
}, 990 );

Comments

Add a Comment