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