• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Modify the link URL of a text format logo in Genesis Framework

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:

Hello, Nahuai!

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:

To see this and another 839 code snippets of this website, login or subscribe here.

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.

Logo in text format.
Logo in text format.

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.

Conclusions

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. 😉

Genesis Framework Header PHP

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?