[Support request] How To Change Site Logo Default Homepage Link?

Home Forums Support How To Change Site Logo Default Homepage Link?

  • This topic has 4 replies, 2 voices, and was last updated 1 month ago by David.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1421498
    Karam Jeet

    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

    #1421607
    David
    Staff
    Customer Support
    #1421612
    Karam Jeet

    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

    #1421613
    Karam Jeet

    It will be very helpful if you help me out with this. That how can I use this code so it can function properly.

    #1421628
    David
    Staff
    Customer Support

    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.

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