If interested in making a related post with thumbnail, the steps are as follows:
1.Log in to blogger.com which your account.
2.Click The design of the dashboard menu
3.Click Edit HTML, do not forget to check the "Expand Widget Templates"
4.Then find the following code </head>
5.Put this code below before the code:
<!--Related Posts with thumbnails Scripts and Styles Start-->
<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: #585858;
font-family: Georgia, “Times New Roman”, Times, serif;
margin-bottom: 0.75em;
margin-top: 0em;
padding-top: 0em;
}
#related-posts a{
color:#FFFFCC;
}
#related-posts a:hover{
color:#000000;
}
#related-posts a:hover {
background-color:#d4eaf2;
}
</style>
<script src='http://blogergadgets.googlecode.com/files/relatedthumbs21.js' type='text/javascript'/>
</b:if>
<!--Related Posts with thumbnails Scripts and Styles End-->
6. Then find the code below :
<div class='post-footer-line post-footer-line-1'>
If you do not find the code above, try to find the code like this :
<p class='post-footer-line post-footer-line-1'>
If you have found, enter all the code below under one of the above code found.
<!-- Related Posts with Thumbnails Code Start-->
<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>
<b:if cond='data:blog.pageType == "item"'>
<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:if></b:loop>
<script type='text/javascript'>
var currentposturl="<data:post.url/>";
var maxresults=5;
var relatedpoststitle="Related Posts";
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script>
</div><div style='clear:both'/>
</b:if>
<!-- Related Posts with Thumbnails Code End-->
7. The final step Save Template and then see the results.
Note: The red code can be replaced in accordance with you want,sources code :http://nobinoku.blogspot.com/2011/02/membuat-related-post-bergambar-atau.html
#585858 (background code), figure 5 shows the number of articles that appear on the related post, Related Posts (The title is desired).
Description: Add related post with thumbnail in blogger Rating: 4.5 Reviewer: Zein Okeh - ItemReviewed: Add related post with thumbnail in blogger
4 komentar:
good tutorial for blog with ficture inside the post.
thanks for this trick!
How to copy this code???
I am copies it only:
Read more at: http://new-ones.blogspot.com/2011/10/add-related-post-with-thumbnail-in.html
Copyright : new-ones.blogspot.com | Under creative Common Share Alike Atribution
just copi like and remove Read more at: http://new-ones.blogspot.com/2011/10/add-related-post-with-thumbnail-in.html Copyright : new-ones.blogspot.com | Under creative Common Share Alike Atribution
Post a Comment
Sorry if my english is bad