• 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

Add navigation links to the footer of entries in Genesis Framework

Find out how to insert links to the next or previous article at the end of each post in Genesis Framework child themes with a bit of code.

Do you want readers to have the option to navigate between posts when they reach the footer? No problem.

You can easily insert links to the previous and next article at the bottom of posts thanks to Genesis Framework hooks.

Code snippet to insert navigation links between posts in the footer

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

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

By adding this line, you get the linked titles of previous and next articles to appear at the footer.

Another option is to introduce a custom text for each link instead of the titles.

If you want the links to be displayed correctly, it’s worth it to “layout” them a bit with CSS.

To do this, add the following lines in the style.css file:

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

The above example is intended to give some basic styles in Genesis Sample.

But I encourage you to create custom styles that integrate with the Genesis child theme design you are working with.

Conclusions

Now you know how to add navigation links to pre and post articles at the end of Genesis Framework entries.

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


Footer Genesis Framework PHP Post

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?