Archived topic
Not able to change site logo link
8 replies · Started by Gianfranco on August 25, 2017
I am not very knowledgeable with coding. I've downloaded code snippet and inserted:
add_filter( 'generate_logo_href', 'tu_custom_logo_href' );
function tu_custom_logo_href() {
// Enter the URL you want your logo to link to below
return 'http://theave.biz';
}
It doesn't seem to make any difference. The site is: https://events.theave.biz/
am i missing something?
Got it. I didn't activate the new code created. Sorry.
Glad you got it working!
How to add this Snippets to my Website? Is there a plugin?
One of these methods here: https://docs.generatepress.com/article/adding-php/
Code Snippets is the easiest if you aren't using a child theme.
I try the Plugin but I get this Error message when adding the code above, anyone know why?
Don't Panic
The code snippet you are trying to save produced a fatal error on line 5:
syntax error, unexpected ':', expecting ';'
The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.
Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.
I just adjusted the code above so it won't cause any errors.
Let me know :)
Thank you! Awesome Support!!
No problem :)