link-logo-to-homepage.php
· 429 B · PHP
Eredeti
// link Wordpress login form logo to homepage and also logo hover text
// Change the login page logo link to your homepage
function my_custom_login_url() {
return home_url();
}
add_filter('login_headerurl', 'my_custom_login_url');
// Change the login page logo hover text
function my_custom_login_title() {
return get_option('blogname'); // or any custom text
}
add_filter('login_headertext', 'my_custom_login_title');
| 1 | // link Wordpress login form logo to homepage and also logo hover text |
| 2 | |
| 3 | // Change the login page logo link to your homepage |
| 4 | function my_custom_login_url() { |
| 5 | return home_url(); |
| 6 | } |
| 7 | add_filter('login_headerurl', 'my_custom_login_url'); |
| 8 | |
| 9 | // Change the login page logo hover text |
| 10 | function my_custom_login_title() { |
| 11 | return get_option('blogname'); // or any custom text |
| 12 | } |
| 13 | add_filter('login_headertext', 'my_custom_login_title'); |
| 14 |