Archived topic
How To Change Site Logo Default Homepage Link?
4 replies · Started by Den on August 28, 2020
Hello Team,
Hope you're having an amazing day.
I wanna know is there any way that I can change the site logo link on my website.
By default when we click on the logo, we're redirected to the home page.
I just want when my visitor clicks on to the logo, he'll go...
This URL [ mysite.com/example-url ]
Not this, [ mysite.com ]
Waiting for your reply.
thanks
Hi there,
this article provides the PHP Snippet to do that:
Hey Devid,
The page contains some code...
add_filter( 'generate_logo_href', function() {
return "https://NEW-URL-HERE";
} );
I didn't understand the meaning of this. Should I paste this code in Additional CSS section or where?
Can you please elaborate a bit :)
THANKS
It will be very helpful if you help me out with this. That how can I use this code so it can function properly.
This article explains how to add PHP Code:
https://docs.generatepress.com/article/adding-php/
You need to replace: https://NEW-URL-HERE with the URL you want to link to.