Change text and url on wordpress admin login page
Add below code into your active theme's function.php
// changing the logo link from wordpress.org to your site
function admin_login_url() { return home_url(); }
// changing the alt text on the logo to show your site name
function admin_login_title() { return get_option('blogname'); }
// calling it only on the login page
add_filter('login_headerurl', 'admin_login_url');
add_filter('login_headertext', 'admin_login_title');
// changing the logo link from wordpress.org to your site
function admin_login_url() { return home_url(); }
// changing the alt text on the logo to show your site name
function admin_login_title() { return get_option('blogname'); }
// calling it only on the login page
add_filter('login_headerurl', 'admin_login_url');
add_filter('login_headertext', 'admin_login_title');
Comments
Post a Comment