December 6, 2012

Widgets

Thumbnail Image Fix For Pinterest Buttons in Blogger


thumbnail issues in pinterestPinterest as you all know is the new social media network introduced just this year that has slowly attracted fair amount of traffic and is grooming daily thanks to publishers and community members. We introduced various codes on how to add a Pinterest pin it button to your webpages but due to server side errors the JavaScript code introduced by pinterest for Firefox and Chrome is not functioning for the past one month. So We fetched a new code using AddThis servers and designed a custom Pinterest counter that works just like the original pinterest button. I also managed to write a simple XHTML code for the original pinterest button which will fetch the correct thumbnail image out of your BlogSpot blog and will work just fine without a description or blank thumbnail image problem. Lets check these fresh codes which works just fine. I will also update the old tutorials today.


Live Demo

 

The Original Pinterest Pin it button

The following code will work just fine on any blogger blog.

<a class='pin-it-button' count-layout='vertical' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url + &quot;&amp;description=&quot; + data:post.title +  &quot;&amp;media=&quot; + data:post.thumbnailUrl'>Pin It</a>
<script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'/>

Here are some regions to give you an idea of how the code works:

  • data:post.url will fetch the Page Link/URL - Retrieved using url variable
  • data:post.title will fetch Blog post title - Retrieved using description variable
  • data:post.thumbnailUrl will fetch a 72 x 72 image thumbnail of your post. The is the data attributed provided by blogger which is often used while displaying the Mobile version of your blog on smartphones or iPad or Samsung Galaxy Tablet. The image surely looks small but this is the only allowed attribute we can use at this moment. I tried a lot to write a script that may force increase the size but the codes were not accepted by strict xml rules of blogger editor. Therefore this method will only display a 72x72 pixel wide image unlike the second method which displays large thumbnails. - Retrieved using the media variable

Enough of code syntax and literature , time to add it to blogger. Kindly link back to this page if you wish to share the above code with your readers. This code is released first time, therefore an attribution link would be enough a favour.  Follow these steps:

  1. Go To Blogger > Template
  2. Backup/restore your template
  3. Click the Edit HTML button
  4. Click Proceed
  5. Click the box "Expand Widget Templates"
  6. Search for this code:

<data:post.body/>

  Now if you wish to add the pinterest button below blog post titles then paste the code in step#7 just above the code in step#6 else if you wish to display the button at the bottom of posts then add the code in step#7 just below step#6 code.

      7.  Choose the code for your preferred size button and paste it inside your template as guided in step#6

For horizontal counter Use this code:

Paste the code below justhorizontal pin it

<b:if cond='data:blog.pageType == &quot;item&quot;'>

<a class='pin-it-button' count-layout='horizontal' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url + &quot;&amp;description=&quot; + data:post.title + &quot;&amp;media=&quot; + data:post.thumbnailUrl'>Pin It</a>
<script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'/>

</b:if>

For Vertical counter Use this code:

vertical pinterest counter

<b:if cond='data:blog.pageType == &quot;item&quot;'>

<a class='pin-it-button' count-layout='vertical' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url + &quot;&amp;description=&quot; + data:post.title + &quot;&amp;media=&quot; + data:post.thumbnailUrl'>Pin It</a>
<script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'/>

</b:if>

     8.   Save your template and all done!

Custom Pin it Counter

For that kindly proceed to this tutorial:

New to Pinterest?

If you have no idea what pinterest is and how to pull out traffic from it to your blog then please read the following delicious tutorials:

Need Help?

If you encountered any problem during installation of the codes then feel free to let me know. I just hope this code and the previous update may help you with the best pinterest experience ever. People will surely now repin your posts once they see fancy thumbnails appearing in your board. Peace and blessings buddies. :)




If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

23 comments:

Tanmay Kapse on Dec 6, 2012, 1:48:00 AM said... #

Nice .... i was worried about pi it buttons not working
Moving Comment Form Above The Comments In Blogger

Akhil abraham on Dec 6, 2012, 7:31:00 AM said... #

That's really a great post ....Thanks for a great tips..

Akhil Abraham
Blog:All Blogging Tools

Niyas on Dec 6, 2012, 7:38:00 AM said... #

Great post bother... Thanks
We are now accepting guest post on our blog

MYB Softs on Dec 6, 2012, 8:43:00 AM said... #

nice post bro, great technique.
Download Free SOftwares

Navneet Viswanadha on Dec 6, 2012, 9:34:00 AM said... #

This is an awesome post ,.....

Tech Ravers

blogging-heaven.com on Dec 6, 2012, 12:49:00 PM said... #

There is a question Mustafa bro that why anyone needs to fix a image cuz every post has diffrent images..

Santu on Dec 6, 2012, 3:11:00 PM said... #

informative tips

Blogger Tips

Mehul Mohan on Dec 6, 2012, 7:02:00 PM said... #
This comment has been removed by a blog administrator.
Ehsan ul haq on Dec 6, 2012, 8:15:00 PM said... #

That's really a great post ....Thanks for a great tips..
Click Here For Free Stuff

Jay Ryan Macabato on Dec 6, 2012, 9:34:00 PM said... #

This is nice and usefull tricks.

A--l--I AkBar on Dec 6, 2012, 9:47:00 PM said... #

Thanks for the Tutorial .!!
I will surely implement this on my new blog on Blogger plateform:)
TricksMe - The Technology Blog

howdoblog.com on Dec 6, 2012, 10:39:00 PM said... #

Thanks for sharing this button Muhammad Mustafa
i really appreciate your work.

Kumar Suhas on Dec 8, 2012, 5:49:00 PM said... #

Using Pinterest PinIt button with Blogger has always been difficult, this is a good improvisation though. Avoiding Pinterst from the social sharing menu is not a good idea as Pinterest has emerged to become one of the top most used social media platforms.

Yahia Bouhlel on Dec 8, 2012, 7:18:00 PM said... #

Thanks a lot :) Useful InFormations !!

BIGGEST SOURCE OF GAMES DOWNLOAD !!!

Faheem Siddiqui on Dec 9, 2012, 12:22:00 AM said... #

That's really a great post ....Thanks for a great tips..
www.expressivehealth.com

Mohammad Mustafa Ahmedzai on Dec 9, 2012, 10:26:00 PM said... #

@blogging-heaven.com

That is true but we often add the best image inside the intro paragraph and this plugin will automatically pick that thumbnail. That simple :)

adrian lucernas on Dec 11, 2012, 8:14:00 AM said... #

Finally found this, because my Thumbnail Image For Pinterest is broken..Thanks for sharing this..

Nicole Spring (Frontier Dreams) on Dec 11, 2012, 8:32:00 AM said... #

Thank you for posting this! I am having an issue, though. My blog has a customized template and "" does not appear at all in it. How can I still add the code? Thanks!!

Mujtaba ali on Dec 12, 2012, 2:37:00 PM said... #

See Funny Stuff http://www.gagsea.com/

Faker on Dec 15, 2012, 7:17:00 AM said... #
This comment has been removed by the author.
Faker on Dec 15, 2012, 7:18:00 AM said... #

Also visit TechnoMinded.com to see special reviews and technology news and catch all the affairs going on in the Tech market place!

SeeJulieStamp on Dec 20, 2012, 11:53:00 AM said... #

This isn't actually working correctly. It pins tiny AND shows up on pinterest super tiny.

SREERAJ M on Dec 22, 2012, 7:06:00 PM said... #

All the best working tricks are here
Explore the world of technology...

www.InfoExpo.in

Click Here To add Comment

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. No cheesy/spam Comments tolerated Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

Support Us

If our Tutorials have helped you a little, then kindly spread our voice using the badge below:-

or try a Beautiful Banner


Widgets

 
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger

    ALL IN ONE SEO PACK 2012

    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!

    Become a SIX FIGURE BLOGGER

    Learn what it takes to become a successful entrepreneur and build a living online!

About The Author

Hi! I am Mohammad, a certified SEO Consultant, Pro Blogger, Computer Engineer and an addicted Web Developer. Read More..

Recipes

SEO Affiliate Marketing Social Media

Make Money Online Web hosting

Blogging Tips Web Designing

Plugins and Widgets Blogging Ethics

Recent Comments

Popular Series

Powered by:

My Blogger Tricks © 2013. All Rights Reserved | Contact |