Archived topic
Featured image to the previous and next links
3 replies · Started by Don on January 2, 2022
Good Afternoon,
I'm trying to add the post featured image to the previous and next links at the bottom of post page.
I followed the instructions here: https://generatepress.com/forums/topic/featured-image-in-pre-next-post-navigation/ and added the code in the child functions.php and css.
The previous and next images are switched. also the arrows are below the image and pointing down. And there is a small box on the end of the next post title. I searched the support but can not find any additional info.
Could you help me get this working? Info in private area, if you need it.
Thanks!
Hi Don,
The previous and next images are switched
It's not, previous means the post published earlier than the current post, not the previous post visually on blog page.
The method from the topic you linked was before we introduced dynamic element to GP Premium
I would recommend to use a block element - post navigation template instead of the complicated PHP and CSS method.
https://docs.generatepress.com/article/block-element-post-navigation/
The video in the attached video shows how to create custom post navigation.
Please be noted, GenerateBlocks plugin is required to use the dynamic options in GP.
Thank You!
No problem :)