How to add related post with thumbnail to blogger
1. Log it to your blogger and go to Design >> Edit HTML
2. First,download the present template as a backup.
3.Make sure you put check mark to “Expand Widget Templates”
4.Find this tag by using Ctrl+F </ head>
5. Paste below code before </ head> tag
6. Search this code again <p class='post-footer-line post-footer-line-1'/> Or post-footer-line
7. Paste below code after one of above code
8. Now Save template .you are done.
* Replace with Related post as your like
* Replace with 5 for changing post amount on related post
1. Log it to your blogger and go to Design >> Edit HTML
2. First,download the present template as a backup.
3.Make sure you put check mark to “Expand Widget Templates”
4.Find this tag by using Ctrl+F </ head>
5. Paste below code before </ head> tag
<!--Related Posts with thumbnails Start--> <b:if cond='data:blog.pageType == "item"'> <style type='text/css'> #related-posts { float:center; height:100%; min-height:100%; padding-top:10px; padding-left:15px; padding-right:15px; } #related-posts h2{ font-size: 1.3em; color: black; font-family: Arial; margin-bottom: 0.75em; } #related-posts a{ color:black; } #related-posts a:hover { background-color:#eeeeee; } </style> <script type='text/javascript'> var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-ZI0n-JIzaL2Ix8Mf_NiMXH4T6AxQdXGqeQCaX5BwgIsm5Gep0BREVeMWu4q7PWUTbLFLpmy6rIYdI0B3XE5dzkHCnYJNJLBF2LTD46AFPib-SLFAMuZRBY6AhPjh54K6FLtWczOD8YlP/"; var maxresults=5; var splittercolor="#cccccc"; var relatedpoststitle="Related post"; </script> </b:if> <!--Related Posts with thumbnails End-->
6. Search this code again <p class='post-footer-line post-footer-line-1'/> Or post-footer-line
7. Paste below code after one of above code
<!-- Related Posts with Thumbnails Code Start-->
<!-- remove --><b:if cond='data:blog.pageType == "item"'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != "true"'>
</b:if>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels_thumbs&max-results=6"' type='text/javascript'/></b:loop>
<script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs("<data:post.url/>");
</script>
</div><div style='clear:both'/>
<!-- remove --></b:if>
<!-- Related Posts with Thumbnails Code End-->
8. Now Save template .you are done.
* Replace with Related post as your like
* Replace with 5 for changing post amount on related post
i have solved the problem of small thumbnails with this new script ...checkout http://www.jasica.in/2011/04/bigger-thumbnails-in-related-posts-with.html
ReplyDeletethis is not working for me, i decide to use linkwithin again
ReplyDeleteThanks a lot sir. It worked for me.
ReplyDeleteRegards,
Vibha from ConnectIndia
Thank!
ReplyDeleteooh it is great thank you.araba yarışı
ReplyDelete