Clicky

  1. Home
  2. Developer Docs
  3. General
  4. How to modify/change the homepage link in the Logo?

How to modify/change the homepage link in the Logo?

If you want to modify or change the homepage link in the logo then you can use the below filter.

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

Example code:

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

Note: No need to change this code in our core plugin(AMpforWp)

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on May 7, 2020

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.

    Was this article helpful?

    Related Articles

    Comments

      1. Hi Chandan Sharma,

        Will you please elaborate more about your issue so that we will understand and help you.

    1. What do you mean by “Add this code into a custom plugin ” ? Which custom plugin?

    Leave a Comment