You know what is a related post widget of blogger. Related post widget of blogger will allow you to show most relevant posts with a post. The related posts widgets will display related posts beneath each of your blog posts, along with thumbnails. The related articles will be shown from other posts in that same category/label/tag. You may show your related posts under your current article. This widget may increase your website's page views. It also helps your visitors to find out some related articles to get more knowledge on a respective subject. It also increase your webpages/posts outlook. Now, have a tutorial on How to Add Blogger Related Posts Widget.
Go to Blogger → Template → Edit HTML → Proceed
Expand the Template checking the expand box.
Press (Ctrl + F) to find </head> code on your Template.
Add the following code just above the </head> code.
<!--Related Posts with thumbnails Scripts and Styles Start--> <!-- remove --><b:if cond='data:blog.pageType == "item"'> <style type="text/css"> #related-posts { float:center; text-transform:none; height:100%; min-height:100%; padding-top:5px; padding-left:5px; } #related-posts h2{ font-size: 1.6em; font-weight: bold; color: black; font-family: Georgia, “Times New Roman”, Times, serif; margin-bottom: 0.75em; margin-top: 0em; padding-top: 0em; } #related-posts a{ color:black; } #related-posts a:hover{ color:black; } #related-posts a:hover { background-color:#d4eaf2; } </style> <script type='text/javascript'> var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLttlG3TGTx2INle_J9wJw_Zs7DKafgvCL9MXc24eWfNtIwwgrZTDG-fxpRWk85JuPeVZvuQgHzrOtvAwYHXsAayAut9JIraUQTy1oetDPIXqk-eKk8_Zcn-CAK5tydg8y3GCMWy8DiW2w/s1600/noimage.png"; var maxresults=5; var splittercolor="#d4eaf2"; var relatedpoststitle="Related Posts"; </script> <script src='http://helplogger.googlecode.com/svn/trunk/related-posts-with-thumbnails-for-blogger.js' type='text/javascript'/> <!-- remove --></b:if> <!--Related Posts with thumbnails Scripts and Styles End-->z
Update: - If you want to can change the default image with the link in blue color. - You can change the number of related posts. Follow this code "var maxresults=5;" & change the number of related posts.
Now find out anyone of the following code ...
<div class='post-footer-line post-footer-line-1'>
<p class='post-footer-line post-footer-line-1'>
<data:post.body/>
Now, copy & paste the following code at the end of any code above.
0 comments
Post a Comment