Tuesday, 20 December 2016

Outlook : Add like button for your post in blogger blogging site!

Random days and random ideas - suddenly it crept up to me isn't it possible for to have like buttons on my posts in my blog page. I want to believe that lot of people read my blogs😎 - but since my blog is associated with my google+ account, there is not much a person without google profile could do, which I know is rare in this time.

Yet it just gives me a reason to enhance my blog - also I don't know this like button will serve me for the better or worse but with this current age of internet - it doesn't take more than a minute to track down something you want to add to.

So my hunt will be put to words here :

Go to Templates -> Edit HTML


Click on Jump to widget -> Blog1



Find this tag : includable id='post' var='post'
Next find this tag : <data:post.body/>

Place this code after all occurrences of  <data:post.body/> which will create the like button after every post.
<data:post.body/>
<!--below is the code generated for the like button-->
<!-- LikeBtn.com BEGIN -->
    <span class='likebtn-wrapper' expr:data-identifier='data:post.id'/>
    <script>(function(d,e,s){if(d.getElementById(&quot;likebtn_wjs&quot;))return;a=d.createElement(e);m=d.getElementsByTagName(e)[0];a.async=1;a.id=&quot;likebtn_wjs&quot;;a.src=s;m.parentNode.insertBefore(a, m)})(document,&quot;script&quot;,&quot;//w.likebtn.com/js/w/widget.js&quot;);</script>
<!-- LikeBtn.com END -->

Click on Save Template and view your blog having the like/dislike button at the end of each post:


Cheers to life!!

~Believe in yourself always!!

No comments:

Post a Comment