How to embed a Pinterest button or widget to your website?

1. For any image - Copy and paste the code below into your page where you want button or widget to appear.

<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark"  data-pin-color="red" data-pin-height="28"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_28.png" /></a>
<!-- Please call pinit.js only once per page -->
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script>

2. For one image -  Copy and paste the code below into your page where you want button or widget to appear.

<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark"  data-pin-color="red" data-pin-height="28"><img src="(put image url)" /></a>
<!-- Please call pinit.js only once per page -->
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script>

3. For image hover - Copy and paste the code below into your page where you want button or widget to appear.

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

===========================

Reference:   Widget builder

0 comments :

Post a Comment

Latest News

Music

 
Tricks and Tips