Sunday 7 October 2012

Add Pinterest Pin It Button With Counter To Blogger

Add Pinterest Pin It Button With Counter To Blogger
In case you are unfamiliar, Pinterest is an online pinboard that allows users to share images they find over the web -by “pinning” them on their boards. The pinned image is linked to the original webpage or blog post location, giving users the chance to visit the source directly.

A Pin It button is what Like button is to Facebook or Tweet button is to Twitter, as it allows users to share your posts without having to leave your blog. It also displays how many times a blog post has been shared.

Now let's see how to add this Printerest Pin It button to blogger.

How To Add Pinterest Pin It Button With Counter To Blogger?

1. Go to Blogger Dashboard > Template > Edit HTML.
2. Back up your template.
3. Check the Expand Widget Templates checkbox.
4. Search (Ctrl + F) for the following code tag in your HTML.

<data:post.body/>

Note:
There are two instances of the tag present in your template. Locate the the first (from top) one.

5. Copy and paste the following code immediately below/after it:

<!-- Pinterest Button Start -->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='pin-wrapper' style='margin:5px 10px 5px 0; text-align: left;'>
<a class='pin-it-button' count-layout='horizontal' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url'>Pin It</a>
<a href='javascript:void(run_pinmarklet())' style='margin-left:-93px; width:43px; height:20px; display:inline-block;'/>
</div> 
<script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'/>
<script type='text/javascript'>
function run_pinmarklet() {
    var e=document.createElement(&#39;script&#39;);
    e.setAttribute(&#39;type&#39;,&#39;text/javascript&#39;);
    e.setAttribute(&#39;charset&#39;,&#39;UTF-8&#39;);
    e.setAttribute(&#39;src&#39;,&#39;http://assets.pinterest.com/js/pinmarklet.js?r=&#39; + Math.random()*99999999);
    document.body.appendChild(e);
}
</script>  
</b:if> 
<!-- Pinterest Button End -->

6. Save.

Button configuration:
  • You can customize the layout of Pin It button & counter by changing the value of count-layout attribute in step 5. Refer to the table below for the available types and their settings.


Button type

count-layout value

margin-left (in line 5) value
pinterest pin-it button vertical
vertical

-46px
pinterest pin-it button horizontal
horizontal

-93px
pinterest pin-it button no count
none

-46px

Button repositioning:

The steps above positioned the button on bottom left of each post. You can change the position if you wish:
  • Position it on top of post
  • Place the button code before <data:post.body/>, instead of after.
  • Position it on the right
  • Change the float in the code from left to right.

Add SCM Music Player To Your Blog

SCM Music Player
 
 
Putting music on Blog is not something very commendable, but there are models that players may be worth by being discreet, easy to customize and will not begin playing automatically. SCM Music Player is a great model that can be incorporated both in Blogger, Tumblr or WordPress.org, running audio from any tab, including links to YouTube videos, creating playlists customized and unique to your blog.

How To Add SCM Music Player To Your Blog?

Step 1: Get SCM Music Player Code

1. Go to http://scmplayer.net/.
2. Choose Skin
3. Edit Playlist
4. Configure Settings
5. Select Done to proceed.

Step 2: Add SCM Music Player Code To Blogger

1. Go to Blogger Dashboard > Layout > Add HTML/Javascript.
2. Paste SCM Music Player Code into the Html/Javascript box.
3. Save it.

Add Facebook Like box or Button To Blogger

Add Facebook Like Button To Blogger
As we all know facebook is one of the largest social media company in the word.If your blog have any fan page then it will help you a lot in increasing traffic on your blog. The Facebook like button is probably the most important and the most used social button on the world wide web today. With its recent upgrade (Facebook sort of merged it with the share to Facebook button, so liking a web page or content you just found would automatically be posted/shared on your Facebook wall, instead of just the normal you liked this __ link wall status), it became a more powerful tool for sharing content. So why not add it to your blogger blogs. It’s simple. Here’s how:


 
How To Add Facebook Like Button To Blogger?

1. Go to Blogger Dashboard > Template > Edit HTML.
2. Tick the Expand Widget Templates check box on top right of the HTML window.
3. Find (Ctrl + F) the following code in your HTML.

<data:post.body/>

4. Copy and paste the Facebook button code immediately below (after) it:

<!-- Facebook Like Button Start -->
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style='float:left;padding:5px 5px 5px 0;'>
<iframe allowTransparency='true' expr:src='&quot;
http://www.facebook.com/plugins/like.php?href=&quot; + 
data:post.url + &quot;&amp;layout=standard&amp;show_faces=false&amp;
width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;
height=35&quot;' frameborder='0' scrolling='no' style='border:none; 
overflow:hidden; width:440px; height:35px;'/>
</div>
</b:if>
<!-- Facebook Like Button End -->

5. Save it.

Configure button:
  • Choose the type of button and set the appropriate width and height by changing the values of query parameters in the above code.
Like button type Query Value Width & Height
 standard like button layout standard
W: 450px
H: 35px (80px w photos)
facebook like button count button_count
W: 90px
H: 20px
facebook like box count box_count
W:55px
H: 65px
standard like button dark colorscheme dark
n.a.
standard like button recommend action recommend
n.a.

Button repositioning:
The steps above positioned the button on bottom left of each post. You can change the position if you wish:
  • Position it on top of post
  • Place the button code before <data:post.body/>, instead of after.
  • Position it on the right
  • Change the float in the code from left to right.
Blogger Widgets