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');

Comments

Popular posts from this blog

Creating Protected routes in ReactJS

Redirect http to https in codeigniter