FABULOUSme
FABULOUSme

Reputation: 1

Pinterest pinit button not working on my website the image does not show it appears broken

[ProductTitle]
[ThumbnailImage]
  <a href="http://pinterest.com/pin/create/button/?url=lerivinos.com&media=lerivinos.com" 
     class="pin-it-button" 
     count-layout="horizontal">
  Pin It
  </a>
<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>
[OurPrice]
[AddToCart]

Upvotes: 0

Views: 3362

Answers (2)

stef
stef

Reputation: 27769

The media parameter of your pintrest url should point at your image file, like so:

<a href="http://pinterest.com/pin/create/button/?url=lerivinos.com&media=https://www.google.com/images/srpr/logo3w.png" 
     class="pin-it-button" 
     count-layout="horizontal">
  Pin It
  </a>

From the pintrest goodies page

Upvotes: 2

terraling
terraling

Reputation: 480

your sample code doesn't have the img link which pinterest give you in the code snippet.

Assuming you mis-copied and omitted it, I had the same problem because pinterest give you this:

<img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" />

I had to add http: to the src to get it to work, ie:

<img border="0" src="http://assets.pinterest.com/images/PinExt.png" title="Pin It" />

Hope that helps.

Upvotes: 2

Related Questions