It was another question asked by an old friend who is using my Wallpaper WordPress theme, He wants to show a thumbnail whenever a visitor hovers the mouse over a text link. So it was my task to enable thumbnail on Previous and Next Post links that used to appear at the end of each post.
By default, this is not available in almost most of the WordPress themes. Some premium theme is implementing this feature to attract more pageview.
To get this effect you are required to make some changes in your single.php file. Single.php file is basically used to display a single post in your WordPress blog. Since we are trying to provide hover effect on Previous and Next text link, We have to locate pagination code in our single.php file. Pagination code of previous and next post look like this.
In the above code next_posts_link( ) and previous_posts_links() functions are responsible to find out next post links and previous post link. These two function not only find out a perfect Previous Post link but also display them as a text Links.
Few websites, now a days does not display this code, instead of that they display some related articles. That code sometimes looks like this.
But as I have mentioned in this post title, Our main objective is to show Previous and Next Post Thumbnail on text link hover and our current code is not able to show text links instead of that, this code display thumbnails, So we need another code with some modification.
The Whole concept was developed by the man you are watching here. I am rakesh Kumar Serial Niche Blogger and SEO Enthusiast. find me onfacebookandon twitter.. Developed popular WordPress theme for Wallpapers and funny Image WordPress theme. Love SEO optimized WordPress theme Designing and Customization.