Dealing with < in tw:counturl addthis plugin

一个人想着一个人 提交于 2019-12-01 01:03:42

Ok I found the answer to it. You have to add a javascript code to handle it.

var tweet_button = document.getElementById(&#39;addthis_button_tweet&#39;);
tweet_button.setAttribute(&#39;tw:counturl&#39;, <data:blog.url/>);

This should work, you just need to add "expr" before tw:counturl. I was able to get it working on my Blogger site with the following:

<a class='addthis_button_tweet' expr:tw:counturl='data:blog.url'/>

This needs to be entered into the template itself Template -> Edit HTML -> Proceed.

I hope this works for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!