2013-02-27 69 views
-1

我已經添加了一個pinit按鈕,但它沒有得到計數。Pinterest的pinit按鈕沒有計數

<a data-pin-config="beside" always-show-count="true" data-pin-do="buttonBookmark" href="//pinterest.com/pin/create/button/"><img src="//assets.pinterest.com/images/PinExt.png" /></a> 
<script src="//assets.pinterest.com/js/pinit.js"></script> 

​​

+0

檢查瀏覽器控制檯中的錯誤。 – hsz 2013-02-27 11:04:15

回答

2

我希望你這樣做的目的,只是可以肯定的:

href=//pinterest.com/pin/create/button/鏈接缺少?url=http://your_url_here部分。如何pinterest知道你想鏈接到哪個頁面(並獲得計數)?

看看這個頁面上的PINIT發生器:http://business.pinterest.com/widget-builder/#do_pin_it_button

正確的版本看起來更像是這樣的:

<a data-pin-config="beside" 
    href="//pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.flickr.com%2Fphotos%2Fkentbrew%2F6851755809%2F&media=http%3A%2F%2Ft1.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcS6QBH2vJzx6BnYN_CACYuThsx4jL6MILcVHfFg6n-CX3CD5rq7ow&description=Next%20stop%3A%20Pinterest" 
    data-pin-do="buttonPin" > 
    <img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /> 
</a> 

如果我離開了URL連接媒體變量我pin'it?!按鈕也不起作用:)。