• Resolved impro3000

    (@impro3000)


    Hello – can you tell me how to remove or change the URL that the header logo links to?

    Thank you,
    Bob

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    You want the header logo link to go where exactly?

    Thread Starter impro3000

    (@impro3000)

    I’d like to make the logo image have no link (non-clickable). If that can’t be done, then I’d like it to just come back to the same page the user is on.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    The no-link might be possible, but it might require some coding. Are you comfortable with that?

    Why would you want the users to navigate back to the same page when clicking the logo.

    Please help me understand why you want to do it so that I can help you with it.

    Thread Starter impro3000

    (@impro3000)

    I send all my paid traffic to an Amp for WP page that is not my home page right now.

    That page has a header logo on it. If someone hits that header logo by mistake, for example while scrolling the screen on mobile, they are redirected to the home page. I don’t want that to happen… I want them to stay on the page they are already on. That’s why I’d prefer to disable it.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Sure, Here’s how you can do it

    add_filter('ampforwp_header_url','prefix_modify_url';);
    function prefix_modify_url($url){
    $url = 'URL YOU WANT TO ADD';
    return $url
    }

    Add this code into a custom plugin and add the code into that and modify the $url, that should do the trick for you.

    Hi, may I ask if this has solved? Since I also wanna remove the clickable feature on the header, I tried many ways suggested in the forum but none of them work.

    Thank you

    My site: https://www.thewildvacation.com

    • This reply was modified 5 years, 5 months ago by danghuynh1988.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove or change header logo link’ is closed to new replies.