How do I change the login logo URL and hover title in WordPress without using any plugin?
The default login logo URL in WordPress that point to “WordPress.org” and logo hover title “Powered by WordPress”. It’s batter to change default WordPress logo, Logo hover title and URL to your site Logo, site title and Home page URL.
Here i will show you only how to change the default login page logo URL that point to WordPress.org and change the title of logo. You can learn How to change WordPress default logo on login, registration page without using any plugin, in one of my previous post.
All you have to do is simply paste the codes below in your theme’s functions.php file:
That’s it 🙂
You don’t need to install any plugin for it .
Changing the logo link from wordpress.org to your site
1 2 3 |
// changing the logo link from wordpress.org to your site function mb_login_url() { return home_url(); } add_filter( 'login_headerurl', 'mb_login_url' ); |
Changing the alt text on the logo that says “Powered by WordPress” to show your site name
1 2 3 |
// changing the alt text on the logo to show your site name function mb_login_title() { return get_option( 'blogname' ); } add_filter( 'login_headertitle', 'mb_login_title' ); |
[paypal-donation]