Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] Not able to change site logo link

Home Forums Support [Resolved] Not able to change site logo link

Home Forums Support Not able to change site logo link

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #373515
    Gianfranco

    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?

    #373516
    Gianfranco

    Got it. I didn’t activate the new code created. Sorry.

    #373529
    Leo
    Staff
    Customer Support

    Glad you got it working!

    #572521
    Ivan

    How to add this Snippets to my Website? Is there a plugin?

    #572537
    Leo
    Staff
    Customer Support

    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.

    #572541
    Ivan

    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.
    #572610
    Tom
    Lead Developer
    Lead Developer

    I just adjusted the code above so it won’t cause any errors.

    Let me know πŸ™‚

    #572640
    Ivan

    Thank you! Awesome Support!!

    #572909
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.