Embed Snippet on Your Site
Replace WordPress Logo on Login Page
Use your custom logo on the default login page, don't forget to edit the snippet...
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
Use your custom logo on the default login page, don't forget to edit the snippet...
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
You must be logged in to post a comment.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalise your experience. You can manage your preferences, but blocking some cookies may impact site performance and services.
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
WPForms is a user-friendly WordPress plugin for creating custom forms with drag-and-drop functionality.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
OptinMonster is a powerful lead generation tool that helps businesses convert visitors into subscribers and customers.
Service URL: optinmonster.com
You can find more information in our Cookie Policy and Privacy Policy.
Didnt work
Hey there,
We’re sorry to hear the snippet did not work for you – did you replace the logo URL with your own logo URL in the code before activating the snippet?
Feel free to reach out at https://wpcode.com/contact and we’ll gladly help debug this further.
I did yes – I gave it the link from my media library
Hello,
Would it also be possible to add a code to replace the “Logo” “link”?
Thank you for the suggestion, we are going to look into what options we have to add such a snippet to the library.
add_filter( ‘login_head’, function () {
$custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’;
$logo_width = 84;
$logo_height = 84;
printf(
‘.login h1 a {background-image:url(%1$s) !important; margin:0 auto; width: %2$spx; height: %3$spx; background-size: 100%%;}’,
$custom_logo,
$logo_width,
$logo_height
);
}, 990 );
add_filter( ‘login_headerurl’, function () {
// Update this URL to the desired link when the logo is clicked
return ‘https://yourcustomurl.com’;
});
Hi Serkan,
Thank you for sharing this. We have a suggestion, if you don’t mind: Instead of adding the code here in a comment, can you please create a copy of this snippet using the Duplicate button on the top right and edit that with your suggestion? That way, it’s easier to share your version of the snippet.
Yeh doesn’t work
Can you please make sure that you replaced the URL for the logo with your own logo? Please reach out using the form at https://wpcode.com/contact and we’re happy to help further debug this.