In the members-only forum a user wrote:
Customizing the next-previous area with featured image?
first time I´m trying this so if something is not done right then please let me know.
I´m making a redesign of my site
and on single posts I wanted to make a bit of change to the next and previous post instead of it just saying “next/previous post” I wanted to have it look like this:
With the post title in the middle of a box and if there is one, the featured image of the post should be the background of the box.
Just customising the next/previous I can handle thanks to code from Studiopress but this kind of custom stuff? A bit to advanced for me.
Thanks for reading.
We can create a custom function based on genesis_adjacent_entry_nav() to display links to previous and next entries on single pages in Genesis having the markup to display previous/next text and corresponding entry titles as an overlay on featured images of the adjacent entries.
We shall make our adjacent entry navigation appear one below the other from 1200px and below.
Create a file named say, singular.js in your child theme's
js directory having the following:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.