Learn in this tutorial how to customize the URL to which a text logo links in Genesis Framework.
One of the advantages of being an OsomCode subscriber is that you can suggest tutorials.
The other day, one of you suggested me the following:
How is it going?
I am writing to give you a suggestion for a new tutorial that I need for a website and I have not been able to find it.
I need to change the link of the logo of the web (top left) and be able to direct it where I want instead of the home page of the web.
Best regards and thanks!
As he says, by default, when you click on the logo, it directs you to the home page.
You should keep in mind that this is the behavior that most users expect, so, if you change it, do it for a good reason. 😉
That said, in this tutorial you will discover how to modify this link thanks to a Genesis filter.
Snippet to change the URL to which a text logo links in Genesis
Add the following code at the end of functions.php or in your functionality plugin:
Thanks to the
genesis_seo_title filter you can modify the link to which the logo points.
In this example the URL is “https://www.yourwebsite.com”, but the idea is that you replace it with a custom one that fulfills the function you want.
Warning: this strategy of modifying the URL with the filter genesis_seo_title only works if you are using text as the logo.
If you are using an image (jpg, png…) you have to use the WordPress filter that I show you in this tutorial.
Now you know how to modify the link URL in a text format logo in Genesis Framework.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉