我想使用addThis工具箱在頁面上的多個項目。我一直在閱讀,我需要使用addthis:url屬性來生成單個項目的正確URL。AddThis工具箱多個項目
我有如下:
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-535e7a2916e104ff" async="async"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_sharing_toolbox" style="margin-bottom:20px;" addthis:title="THE TITLE" addthis:description="THE DESCRIPTION" addthis:url="<?php echo $this->item->link; ?>"></div>
這似乎並不做任何事情?它只能在div中響應,但實際上並沒有改變該份額,因此它對於該項目是特定的。
任何想法?
感謝
我覺得你在src的javascript代碼中缺少路徑看起來像是被破壞 – 2014-12-05 13:47:48
不,路徑是正確的。這是您在其網站上創建時生成的代碼。它也適用於單獨的頁面。 – user2713512 2014-12-05 13:51:23