Related Posts, Subscription Box, Share Button Below Blogger Post

Blogger HTML section allows you do add whatever you wish to add and the more we keep on learning about HTML, JavaScript and CSS we keep on coming up with new gadgets that make our blogging experience great. This is one of the reasons why I love blogger platform. It lets you add whatever you want a long as you know how to add it without creating in errors.
Related Posts, Subscription Box, Share Button Below Blogger Post
Today we will be adding to our ogbonge blog template the same related posts, subscription box and share button used on Jide’s blog. The three widgets are very important for our blog both the desktop view and the mobile view. We will also be adding them to our custom mobile template so do keep in touch for that more!.

Why Add a Related Post Widget Below Each Post in blogger?

Related post widget which is also referred to as recommended post widget is a special widget that enlists for your blog visitors any article that is related to the one being read. This system makes use of the labels on each post. It’s important in navigating your visitors round similar posts on your blog.
blogger related posts
Another important reason for it is that it increases your page views and also have a positive impact on your blog. Related post is of different types. 
  • With thumbnail and post title
  • As a slider carousel
  • With just post title

Why Add Email Subscription Form Below posts

Subscription boxes can be placed in the sidebar, header, footer but what is special about placing the box below each post?. It is a simple logic. A blog reader will be more likely to subscribe to your blog after reading your blog content.
If you have composed a great post on increasing blogger avatar thumbnail resolution, and the visitor loves what he read, then he is more likely to subscribe to your blog newsletter for more cool articles like the one he just read.

What about the Share Buttons?

Just like the subscription box, a reader would really want to share your post with his social media friends after reading the quality of your post and also if he gains something new. Share buttons can be placed at the beginning of the post, beside the post and also at the footer of the post.
My previous post on share buttons (MBT blogger share buttons with counter), shows how you can add responsive share buttons below post title and at the footer of the post. I really like the widget because, with it, you can share a post to over 8 social networks and can see the number of post shares for each post.

How To Add Related Post Gadget To Blogger Post Footer

If you have been following ogbonge series, then adding this will be very easy for you but if you have not, then I advise you check out the series.

Step 1

Log in to blogger.com >> visit the template section >> backup your template >> clink on edit HTML

Step 2

Using CTRL+F search for the second <div class=’post-footer’>

Step 3

Just below the second &lt;div class=’post-footer’&gt; paste the below code.

&lt;b:if cond=’data:blog.pageType == &amp;quot;item&amp;quot;’&gt;
&lt;div id=’related-posts’&gt;
&lt;font face=’Arial’ size=’3’&gt;&lt;b&gt;Related Posts: &lt;/b&gt;&lt;/font&gt;&lt;font color=’#FFFFFF’&gt;&lt;b:loop values=’data:post.labels’ var=’label’&gt;&lt;data:label.name/&gt;&lt;b:if cond=’data:label.isLast != &amp;quot;true&amp;quot;’&gt;,&lt;/b:if&gt;&lt;b:if cond=’data:blog.pageType == &amp;quot;item&amp;quot;’&gt;
&lt;script expr:src=’&amp;quot;/feeds/posts/default/-/&amp;quot; + data:label.name + &amp;quot;?alt=json-in-script&amp;amp;callback=related_results_labels&amp;amp;max-results=5&amp;quot;’ type=’text/javascript’/&gt;&lt;/b:if&gt;&lt;/b:loop&gt; &lt;/font&gt;
&lt;script type=’text/javascript’&gt; removeRelatedDuplicates(); printRelatedLabels();
&lt;/script&gt;
&lt;/div&gt;
&lt;/b:if&gt;
&lt;!– Related Posts with Thumbnails Code End–&gt;

Step 4 – Customization

Using CTRL+F search for &lt;/head&gt;. Just above it, paste the below code.

&lt;!–Related Posts Scripts and Styles Start–&gt;
&lt;style&gt;
#related-posts {
float : left;
width : 350px;
margin-top:20px;
margin-left : 5px;
margin-bottom:20px;
font : 11px Verdana;
margin-bottom:10px;
}
#related-posts .widget {
list-style-type : none;
margin : 5px 0 5px 0;
padding : 0;
}
#related-posts .widget h2, #related-posts h2 {
font-size : 20px;
font-weight : normal;
margin : 5px 7px 0;
padding : 0 0 5px;
}
#related-posts a {
text-decoration : none;
}
#related-posts a:hover {
text-decoration : none;
}
#related-posts ul {
border : medium none;
margin : 10px;
padding : 0;
}
#related-posts ul li {
display : block;
background : url(https://2.bp.blogspot.com/_u4gySN2ZgqE/SnZhv_C6bTI/AAAAAAAAAl4/Rozt7UhvgOo/s200/greentickbullet.png) no-repeat 0 0;
margin : 0;
padding-top : 0;
padding-right : 0;
padding-bottom : 1px;
padding-left : 21px;
margin-bottom : 5px;
line-height : 2em;
border-bottom:1px dotted #cccccc;
}
&lt;/style&gt;
&lt;script type=’text/javascript’&gt;
//&lt;![CDATA[
var relatedTitles = new Array();
var relatedTitlesNum = 0;
var relatedUrls = new Array();
function related_results_labels(json) {
for (var i = 0; i &lt; json.feed.entry.length; i++) {
var entry = json.feed.entry[i];
relatedTitles[relatedTitlesNum] = entry.title.$t;
for (var k = 0; k &lt; entry.link.length; k++) {
if (entry.link[k].rel == ‘alternate’) {
relatedUrls[relatedTitlesNum] = entry.link[k].href;
relatedTitlesNum++;
break;
}
}
}
}
function removeRelatedDuplicates() {
var tmp = new Array(0);
var tmp2 = new Array(0);
for(var i = 0; i &lt; relatedUrls.length; i++) {
if(!contains(tmp, relatedUrls[i])) {
tmp.length += 1;
tmp[tmp.length – 1] = relatedUrls[i];
tmp2.length += 1;
tmp2[tmp2.length – 1] = relatedTitles[i];
}
}
relatedTitles = tmp2;
relatedUrls = tmp;
}
function contains(a, e) {
for(var j = 0; j &lt; a.length; j++) if (a[j]==e) return true;
return false;
}
function printRelatedLabels() {
var r = Math.floor((relatedTitles.length – 1) * Math.random());
var i = 0;
document.write(‘&lt;ul&gt;’);
while (i &lt; relatedTitles.length &amp;&amp; i &lt; 20) {
document.write(‘&lt;li&gt;&lt;a href=”‘ + relatedUrls[r] + ‘”&gt;’ + relatedTitles[r] + ‘&lt;/a&gt;&lt;/li&gt;’);
if (r &lt; relatedTitles.length – 1) {
r++;
} else {
r = 0;
}
i++;
}
document.write(‘&lt;/ul&gt;’);
document.write(‘&lt;a href=”https://obhiabablog.blogspot.com.ng/2016/09/related-posts-subscription-box-share-button-blogger.html” target=”_blank” rel=”nofollow”&gt;&lt;font size=”1″ color=”black”&gt;[Get Related Posts Widget for Your Blog]&lt;/font&gt;&lt;/a&gt;’);
}
//]]&gt;
&lt;/script&gt;
&lt;!–Related Posts Scripts and Styles End–&gt;

Step 5.

Save the template and that’s all.

Show Feedburner Subscription Box Below Blogger Post

Just like I earlier explained, adding Feedburner subscription box below blogger posts, is really important for keeping active/dedicated readers.

Step 1

Log in to blogger.com >> visit the template section >> backup your template >> clink on edit HTML

Step 2

Using CTRL+F search for the second <div class=’post-footer’>.

Step 3

Just below the second &lt;div class=’post-footer’&gt; copy and paste the below code.

&amp;lt;form style=&amp;quot;border:1px solid #ccc;padding:3px;text-align:center;&amp;quot; action=&amp;quot;https://feedburner.google.com/fb/a/mailverify&amp;quot; method=&amp;quot;post&amp;quot; target=&amp;quot;popupwindow&amp;quot; onsubmit=&amp;quot;window.open(&amp;#039;https://feedburner.google.com/fb/a/mailverify?uri=obhiabablog&amp;#039;, &amp;#039;popupwindow&amp;#039;, &amp;#039;scrollbars=yes,width=550,height=520&amp;#039;);return true&amp;quot;&amp;gt;&amp;lt;p&amp;gt;Enter your email address:&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; style=&amp;quot;width:70%&amp;quot; name=&amp;quot;email&amp;quot;/&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; value=&amp;quot;obhiabablog&amp;quot; name=&amp;quot;uri&amp;quot;/&amp;gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;loc&amp;quot; value=&amp;quot;en_US&amp;quot;/&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Subscribe&amp;quot; /&amp;gt;&amp;lt;p&amp;gt;Delivered by &amp;lt;a href=&amp;quot;https://feedburner.google.com&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;FeedBurner&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/form&amp;gt;&amp;lt;p&amp;gt;Gadget by &amp;lt;a href=&amp;quot;https://obhiababablog.blogspot.com&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Obhiaba Blog&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/form&amp;gt;

Step 4 – Customization

Make the following changes to the code.
  1. Replace obhiabablog with your Feedburner username
  2. Change border:1px to border:0px to remove the border.
  3. Change Enter your email address: to any line of phrase you want.

Step 5.

Save the template and that’s all.

Add Twitter, Facebook, Google Plus Share Buttons Below Posts

The share button I am offering on this post will only show twitter, Facebook and google plus share buttons for more buttons like Pinterest, Whatsapp, StumbleUpon, LinkedIn, add them here.

Step 1

Log in to blogger.com &gt;&gt; visit the template section >> backup your template >> clink on edit HTML

Step 2

Using CTRL+F search for the second

Step 3

Just below the second <div class=’post-footer’>

copy and paste the below code.

&lt;b:if cond=’data:blog.pageType == &amp;quot;item&amp;quot;’&gt;
 &lt;span style=’font-size: 15px;font-weight:bold;’&gt;Share : &lt;/span&gt;
&lt;p align=’center’&gt;
&lt;div class=’fb-like’ data-action=’like’ data-layout=’button_count’ data-share=’true’ data-show-faces=’false’/&gt;
&lt;a href=”http://twitter.com/share” class=”twitter-share-button” data-count-value=”horizontal”&gt;Tweet&lt;/a&gt;
&lt;script src=’http://platform.twitter.com/widgets.js’ type=”text/javascript”&gt;&lt;/script&gt;
      &lt;/p&gt;
&lt;/b:if&gt;

Step 5.

Save the template and that’s all.
Note: All the above gadgets will be added to the mobile version of my next post where I will talk about editing the header, post thumbnail, show ads in mobile and many other tutorials related to the blogger custom template.

Show About Author Gadget Below Every Post

Well am not a big fan of this widget, that is why you don’t see it on my blog but it is important since it lets your blog viewers know who you also relate more with you. Some persons said it makes your followers trust you more.

Step 1

Log in to blogger.com >> visit the layout section >> Main section (Blog1) >> clink on “Add Gadget”.

Step 2

In the pop-up box, just try and locate the “show author box below post”, tick it and clink on save.
Tip: This same trick can be used to show AdSense ads between posts in blogger. Read about it – Properly show AdSense ads in Blogger.

Final Words

I have jut showed you how to add Feedburner subscription form, share buttons and related post to blogger. Should in case you want to add YouTube subscription button, you can simply visit this page, while for twitter follow button visit this page.
Have any questions? free feel to ask and also suggest an article for us in the comment box. Sharing is caring!

Related Articles

  • Design Blogger Header, Background, Remove Navbar – OgbongeBlog Style
  • How To Add SEO Friendly Meta Description Tag To Blogger Blog
  • Find Widget ID, Section ID Using Inspect Tool
  • Purchase Cheap .Com .Ng Domain Name From Garanntor Nigeria
  • How To Design OgbongeBlog Blogger Template
  • push notification How To Setup Free Browser Push Notifications For Blogger
  • 3 Comments - Post Yours! How to? ▼

    1. This Man you are the bomb oh, but have increased my knowledge on css oo

      thanks mightly

    2. Welcome.. and thanks for the encouraging words.

    3. 918563 187170I think one of your advertisements caused my browser to resize, you might want to put that on your blacklist. 228655

    Leave a Reply

    0 Shares
    Share
    +1
    Tweet
    Pin
    Share
    Stumble