控制addthis共享的内容

时间:2012-11-07 09:30:38

标签: php javascript jquery wordpress plugins

我正在使用wordpress模板。

我为共享者提供了这个标记:

        <div class="addthis_toolbox addthis_default_style addthis_32x32_style"">
            <a class="addthis_button_facebook" style="cursor:pointer"></a>
            <a class="addthis_button_twitter" style="cursor:pointer"></a>
        </div>

问题是,当我点击在Facebook上分享它时会显示:

enter image description here

正如您所看到的,标题,网址和图片确实没问题,但它也以奇怪的方式显示内容...是否可以删除它或修改以便以干净的方式共享它?

1 个答案:

答案 0 :(得分:1)

元标记

当您尝试共享网址并将其放在What's on your mind...文本框中时,它会是相同的。您需要更改HTML输出中的<meta />标记。

因此,要进行更改,只需添加以下标记:

<meta name="description" content="Whatever you want in the share body." />
<meta name="keywords" content="HTML,CSS,XML,JavaScript" />
<meta name="author" content="Your Name" />