• 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 Genesis Framework header URL

Find out how to change the header URL in a Genesis Framework child theme using a code snippet.

By default, Genesis Framework and most of its child themes use the home URL when you click on the web logo.

In fact, this is the usual behavior that most users expect, so you don’ t want to change it without a good reason.

Do you have your reasons? Well, here’s the code you need:

Snippet to change the header url

Add this fragment to the end of the functions.php file:

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

In this specific case, when clicking on the website’s logo the user will go to the url “https://example.com/”.

Of course, you can change this route to the one you want.

Conclusions

Although the url linked to the header of a website is usually the home page, now you know how to change that url in your Genesis child theme. Just use the code snippet above. 😉

If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.

Benefits 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

close-icon

Lost your password?