Description
- Blog posts end with plain “Newer Post / Older Post” links. This code turns them into rounded cards with each post’s thumbnail, a long arrow and a soft hover effect, so readers can see what’s next before clicking.
- buy me a coffee

#1. Install Code
#1.1. Use this code to Blog Page Header Injection
<!-- 11.26c14v11 Blog Post Pagination with Thumbnails: Newer/Older Post Cards -->
<script>
window.blogPaginationOptions = {
prevText: 'Newer Post',
nextText: 'Older Post',
useLongArrow: true,
arrowSize: '22px',
backgroundColor: '#f4f4f7',
hoverBackgroundColor: '#ededf1',
borderWidth: '1px',
borderColor: '#d6d6da',
itemRadius: '33px',
imageRadius: '16px',
itemPadding: '20px',
itemPaddingMobile: '20px',
itemSpace: '2vw',
labelImageSpace: '20px',
imageTitleSpace: '24px',
imageWidth: '110px',
imageWidthMobile: '70px',
imageRatio: '1/1',
stackOnMobile: true
};
</script>
<script src="https://code.beaverhero.com/blogpost/1126c14v11neweroldercardthumbnailspagination.js"></script>

#1.2. Customize
To change text Older, Newer Post, you can edit this
prevText: 'Newer Post', nextText: 'Older Post',
To change card background/hover/border, edit this
backgroundColor: '#f4f4f7', hoverBackgroundColor: '#ededf1', borderWidth: '1px', borderColor: '#d6d6da',
To change item radius, image radius (rounded corners), edit this
itemRadius: '33px', imageRadius: '16px',
To change space inside item, gap between item, gap between image – text, edit these
itemPadding: '20px', itemPaddingMobile: '20px', itemSpace: '2vw', labelImageSpace: '20px', imageTitleSpace: '24px',
To change image size, edit this
imageWidth: '110px', imageWidthMobile: '70px', imageRatio: '1/1',