I’m trying to change the logo url of the site to “mywebsite.com/side2”, but it is not working, can anyone tell me where is the error in the code below?
add_filter( 'login_headerurl', 'custom_loginlogo_url' );
function custom_loginlogo_url($url) {
return home_url( 'side2' );
}
7 Answers
The login_headerurl
filter is for changing the logo url of login page, according to the Codex.
To change the logo URL of your homepage, you will have to look into your theme’s header.php
file. You logo and it’s link are included there. Depending on your theme, they way that your URL is generated may be different.
Access your header.php
file from Appearance > Edit
in the admin panel, and search for the line containing the logo. There, you can change it to whatever you want.