Show Pinterest Pin it Button On Images On Mouse Hover

Share it Please
If you are thinking of using Pinterest effectively for your business, then consider applying this awesome hack to your blog images. Pinning image will now get more easier for you and your readers after applying this hack. The pin it icon will appear on mouse hover and it works on most browsers like Firefox, Internet explorer, Google chrome. But it doesn't work in dynamic view, mobile template and when you enter your blog page using read more link.
On mouse hover the Pinterest pin it icon will appear on your images as shown in the screenshot below.
In our previous post we also shared a tutorial on how to disable right click on blog images which might also be of an interest to you.

How To Add Pinterest Pin it Button To Images

  • Go to Template > Edit HTML > Proceed
  • Use ctrl F to find </body> and paste the following code above/before </body>

<script>
//<![CDATA[
var bs_pinButtonURL = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizcPIDM3qOqjTvJHOQW8mrxgVcAxlCFVnWaDdVnwtQTvaq4b_p5VJLjb-G_jeuT6SYILo_hWnz8egD_Udg8y37uO5NpwJLhDBauy7HbcnOu00d8WHPHRHgR2mAnvvBN2QNJIqoiZEToYwA/s1600/pinterestx1_72.png";
var bs_pinButtonPos = "center";
//]]>
</script>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='http://greenlava-code.googlecode.com/svn/trunk/publicscripts/bs_pinOnHoverv1_min.js' type='text/javascript'></script>
<!-- please do not alter or remove the following code -->
<div id='bs_pinOnHover'><a href="http://www.bloggersentral.com/2012/11/pinterest-pin-it-button-on-image-hover.html">Pin It button on image hover</a></div>

  • Save your template.

How to block the button on a particular image?

If you wish to block the image from appearing on a particular image, simply assign nopin class to the image tag in your post editor after switching to HTML mode. See the example below.

<img class="nopin" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW-aTj0FGmxXAqg_3pGuzMF0y6cwDWAXV_078ehLrmyytgOrZD6GsOIiVP2RbuVA-zhKtwpyo-apRiU6I_ZNIPzxA7TCfhHOsI2VwxQtZDLOZw6HO_DQbf3NPofVSAP9AavGKT9k8RyVu6/s1600/image.jpg" />

You might also like:
Hope you found this useful? Take few seconds to share it.
Happy Pinning!