Scrolling Related Post Widget with Thumbnail For Blogger
Scrolling Related Post Widget with Thumbnail For Blogger
Hi fellows, I am going to share another amazing Related post
with which is really unique. This is a scrolling related post widget with
bubble thumbnail. This related post widget will able to display 10 or more
thumbnail with post title and it will scroll left to right and again it will
scroll right to left side. And when any use mouse over on image thumbnail then
it will stop scrolling and a bubble will appear with post title. This is really
amazing while your blog visitors will see it. And installation of this widget
is very simple. For adding this widget please follow the below steps-
Step 1 Log in to your Blogger Account and Go to
Dashboard
Step 2 Click on Template-> Edit HTML->
Step 3 Now find out </head> by
Pressing Ctrl+F (Windows) or CMD+F (Mac)
Step 4 And Paste the below Code before/above </head>
<b:if cond='data:blog.pageType == "item"'>
<style type='text/css'>
#related-posts {float:center;height:100%;min-height:100%;padding-top:5px;padding-left:5px;}
#related-posts h2{font-size: 1.6em;font-weight: bold;color:#000;font-family:Arial, Georgia;margin-bottom:0.75em;margin-top: 0em;padding-top: 0em;}
#related-posts a{-webkit-transition: background 1s ease, color 1s ease;-moz-transition: background 1s ease, color 1s ease;-o-transition: background 1s ease, color 1s ease;}
#related-posts a:hover{background-color:#1194F9;-webkit-transition: background 1s ease, color 1s ease;-moz-transition:background 1s ease, color 1s ease;-o-transition:background 1s ease, color 1s ease;-webkit-border-radius: 5px;-moz-border-radius:5px;border-radius:5px;-o-border-radius:5px;}
.tooltip{width: 115px; color:#000;font:lighter 12px/1.3 Arial,sans-serif;text-decoration:none;text-align:left}
.tooltip span.top{padding:20px 5px 0;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsssAT96G1brArM4-mCBjSQNUYyX0twCz1ROWhVcKAlBiWjefXHk7aZSpeNWEIToPKY9R8io5u1fxjgm1FrGy86MjCwGEfpwYimJ7_K4FqXoNEZtrldLutnrRtN6igximGcojhtB3clCTV/s1600/BloggerSpice+bubble.png) no-repeat top;}
.tooltip b.bottom{padding:2px 5px 6px;color:#548912;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsssAT96G1brArM4-mCBjSQNUYyX0twCz1ROWhVcKAlBiWjefXHk7aZSpeNWEIToPKY9R8io5u1fxjgm1FrGy86MjCwGEfpwYimJ7_K4FqXoNEZtrldLutnrRtN6igximGcojhtB3clCTV/s1600/BloggerSpice+bubble.png) no-repeat bottom;}
</style>
<script type='text/javascript'>window.onload=function(){enableTooltips("calcList")};imgBT=new Image();imgBT.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrTkGzJLQQYJgzcsiuWWh5E9YWZE5RaFHhVmIyzBr-4WSkn2aUYNw8tU9WK71MC3C_oOi6FAURpLtwPKzKiL6GTsSI1HC0NyDr-Gn6cr8zuFBVUv0BzT40iMLbh77C3VEFE_N2TiUPciN_/s1600/BS+No+Image+White.png';</script>
<script src='https://googledrive.com/host/0B9kc_Su2qRHNTS0xdDNRM0NVRDA' type='text/javascript'></script>
</b:if>
Step 5 Now by Pressing Ctrl+F (Windows) or CMD+F (Mac) again find out <data:post.body/>
or <div class='post-footer-line post-footer-line-1'>
or <div class='post-footer-line post-footer-line-1'>
Step 6 Now Paste the below Code after/below <data:post.body/> or <div class='post-footer-line
post-footer-line-1'>
<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=12"' type='text/javascript'/></b:if></b:loop>
<h3>Related Posts</h3>
<marquee align='center' behavior='alternate' direction='left' onmouseout='this.start()' onmouseover='this.stop()' scrollamount='2' width='100%'>
<script type='text/javascript'>
var currentposturl="<data:post.url/>";
var maxresults=10;
var relatedpoststitle="";
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script></marquee>
</div><div style='clear:both'/>
</b:if>
Customization
- Alter maxresults=10; for limiting the number of post to display on widget.
Step 7 Now hit
the Save template button.
Now
check your post to see the scrolling related post widget. This would be really
beautiful and add a motion in your Blogger template. For any further query feel
free to leave a comment.
2 comments