【问题标题】:Configure Addthis URL配置添加此 URL
【发布时间】:2012-09-17 03:23:36
【问题描述】:

我在共享选项中使用插件 addthis 我使用默认值(共享网页),但在喜欢(facebook)、twitter 和 google+ 中我想要我的定义。这是我的代码:

<div class="addthis_toolbox addthis_default_style" style="float:left">
<a class="addthis_button_facebook_like" fb:like:layout="button_count" href="http://www.website.com/"></a>
<a class="addthis_button_tweet" href="http://www.website.com/"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium" href="http://www.website.com/"></a>
<a class="addthis_counter addthis_pill_style"></a>

但此代码在我的网络中不起作用..

【问题讨论】:

    标签: html share addthis


    【解决方案1】:

    将“href”替换为“addthis:url”。要同时指定标题,请使用“addthis:title”。完整的文档可以在这里找到:

    http://support.addthis.com/customer/portal/articles/381263-addthis-client-api#.UFczI6SXRuo

    你的代码应该是这样的:

    <div class="addthis_toolbox addthis_default_style" style="float:left">
    <a class="addthis_button_facebook_like" fb:like:layout="button_count" addthis:url="http://www.website.com/"></a>
    <a class="addthis_button_tweet" addthis:url="http://www.website.com/"></a>
    <a class="addthis_button_google_plusone" g:plusone:size="medium" addthis:url="http://www.website.com/"></a>
    <a class="addthis_counter addthis_pill_style" addthis:url="http://www.website.com"></a>
    </div>
    

    【讨论】:

      猜你喜欢
      • 2015-06-26
      • 1970-01-01
      • 1970-01-01
      • 2011-09-07
      • 2014-08-21
      • 2018-12-10
      • 2017-12-09
      • 1970-01-01
      • 2011-11-28
      相关资源
      最近更新 更多