Search code examples
pinterest

Pin It hover on single image?


do you know if its possible to have the pint it mouse over on a single image? right now I use this:

<!-- Please call pinit.js only once per page -->
<script type="text/javascript" async  data-pin-hover="true"
src="//assets.pinterest.com/js/pinit.js"></script>

But that is placing a pint it on every image on that page, I just have 3 or 4 images that needs the hover action, not all the whole images in that page, any idea guys?

Thanks!


Solution

  • From looking at the pinterest documentation, I think by default it wants to put a pinit button on everything. So to exclude images, you have to add the exclude specifically on every image for which you do not want the image to appear:

    data-pin-no-hover="true"

    https://developers.pinterest.com/on_hover_pin_it_buttons/