Archived topic
How do I change the link for the logo?
7 replies · Started by Carsten on April 2, 2020
Hi there, how do I change the link for the logo, to link to another page?
Hi there,
This should help:
https://docs.generatepress.com/article/generate_logo_href/
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know :)
Thanks, I added the code snippet to my functions.php in my child theme, but it does not work, it still link to the default page?
Can you copy the and paste the full code you are adding here?
Make sure to highlight the code and click the code button.
I added this in the end of the functions.php. The access to the /start page requires users to be logged in, but this is not the issue.
add_filter( 'generate_logo_href', function() {
return "https://mydomain/start/";
} );
Just checked the site and currently, you are only using the site title and not the logo so the code doesn't work.
Will you be adding a logo?
Working now, thanks
No problem :)