Get In Touch

Home » » Add Dynamic Pinterest Pin It Button For Blogger / Blogspot

Add Dynamic Pinterest Pin It Button For Blogger / Blogspot

Written By Unknown on Saturday 8 September 2012 | 22:34


Add Dynamic Pinterest Pin It Button For Blogger / Blogspot

Pinterest is a new social networking site where you can share the awesome images found in the web. Pinterest is an online pin board where you can pin web photos/images and the images are displayed on Pinterest with a link to the source page of the image. Your friends and followers can re-pin(share) your image to their Pin Boards making your image and the post on your blog containing the image go viral. Pinterest is the fastest growing and one of the top social networks on the Web. By add the Pinterest Pin It button to your blog, your readers can easily Pin the article images to their Pin Boards and you will get a good amount traffic from Pinterest.
As the title says this is a Dynamic Pin it Button. which will first grabs the image from settings. if it is not available not available, then it will pull the first image from the article. If there no image found in the Article then it take the Default image from settings, and it also adds a Description from the post with 500 characters (max length on Pinterest).

HOW TO ADD THE PINTEREST PIN IT BUTTON TO BLOGGER?

ADDING PIN IT SCRIPT FOR BLOGGER

  1. Login to Blogger Dashboard > Choose your Blog and Click the More Options Dropdown
  2. Select the Template > Click on Edit HTML > Proceed
  3. Check/Tick the Expand Template Widgets checkbox
  4. Search for </head> and place the below code before it!
    <script type="text/javascript" src="http://bloggerblogwidgets.googlecode.com/svn/trunk/w2b_blogger_pinit.js"></script>

ADDING PIN IT BUTTON SCRIPT

  1. Search for <data:post.body/>
  2. Place the Bellow Pin It Button script before or after it
    - If you add the below code before the <data:post.body/> then it will appear the Before the Post Content.
    - If you add the below code after the <data:post.body/> then it will appear the After the Post Content.
    <b:if cond='data:blog.pageType == &quot;item&quot;'> 
    <div expr:id="&quot;w2bPinit-&quot; + data:post.id" style="display: none;visibility: hidden;height: 0;width:0;overflow: hidden;" class="w2bPinitButton"> 
     <data:post.body/>
     <script type="text/javascript">
      w2bPinItButton({ 
       url:"<data:post.url/>", 
       thumb: "<data:post.thumbnailUrl/>", 
       id: "<data:post.id/>", 
       defaultThumb: "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0d5oTFHgCsT6hJzi_0UFOTD0OrMK-WK8NUTIHoOQYxzoMLxIKj7zbf6lT5K0B_ovtVS9ACTcSMbsKqYvpJtZbxtZRi6Gl7_rw_z7qfN2diZl8_eSCW_RO836ueDIBjiUFi5B7ZlIBbDkM/s1600/w2b-no-thumbnail.jpg", 
       pincount: "horizontal" 
      }); 
     </script> 
    </div> 
    </b:if>
    Settings
    defaultThumbSet the Default Thumbnail Image URL.
    pincountSet the Pin it Count Style.
    Options
    vertical
    horizontal
    none

ADDING STYLINGS

Add the below styling before ]]></b:skin> tag.
.w2bPinitButton{ 
 float: left; /* Customize left/right */ 
 margin-right:10px; /* Customize margin-left/margin-right */ 
 display: block; 
 padding:4px;
}
Customize the Float and Margin properties according to your need.
I hope this Pin it Button is helpful to you. Please share it with your Friends and Leave your Comments. :)


Share this article :

4 comments:

  1. Pinwords is a really basic tool, but it’s great if you want to quickly make an image from a quote and add it to your Pinterest account. Pinstamatic actually lets you create a whole bunch of items to add to your Pinterest boards including website snapshots, pins of Twitter profiles and Spotify tracks that you can pin.

    ReplyDelete
  2. Pinwords is a really basic tool, but it’s great if you want to quickly make an image from a quote and add it to your Pinterest account. Pinstamatic actually lets you create a whole bunch of items to add to your Pinterest boards including website snapshots, pins of Twitter profiles and Spotify tracks that you can pin.

    ReplyDelete
  3. Pinwords is a really basic tool, but it’s great if you want to quickly make an image from a quote and add it to your Pinterest account. Pinstamatic actually lets you create a whole bunch of items to add to your Pinterest boards including website snapshots, pins of Twitter profiles and Spotify tracks that you can pin.

    ReplyDelete
  4. Pinwords is a really basic tool, but it’s great if you want to quickly make an image from a quote and add it to your Pinterest account. Pinstamatic actually lets you create a whole bunch of items to add to your Pinterest boards including website snapshots, pins of Twitter profiles and Spotify tracks that you can pin.

    ReplyDelete

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Blogger Widgets And Gadgets - All Rights Reserved
Template Created by Creating Website
Proudly powered by Blogger