admin 管理员组文章数量: 1086019
I want to customise the "via @sharethis" part of the sharethis Twitter share button.
Everything I can find (/ for example) says to add st_via="TwitterUsername"
to the ShareThis span <span class="st_twitter" st_via="TwitterUsername">…
however, I am dynamically adding the buttons so am unable to do this.
Here is how I create the buttons:
var defaults = {
"service": "twitter",
"element": …,
… etc,
}
stWidget.addEntry(defaults);
How can I customise or remove the "via @ShareThis" part of the resulting twitter share button?
I want to customise the "via @sharethis" part of the sharethis Twitter share button.
Everything I can find (http://blog.sharethis./2012/04/30/via-sharethis-is-here-2/ for example) says to add st_via="TwitterUsername"
to the ShareThis span <span class="st_twitter" st_via="TwitterUsername">…
however, I am dynamically adding the buttons so am unable to do this.
Here is how I create the buttons:
var defaults = {
"service": "twitter",
"element": …,
… etc,
}
stWidget.addEntry(defaults);
How can I customise or remove the "via @ShareThis" part of the resulting twitter share button?
Share Improve this question asked May 7, 2013 at 7:59 Ned MartinNed Martin 5327 silver badges13 bronze badges1 Answer
Reset to default 10Boss, just add the st_via="[@theathere]" attribute to the span
<span id='twitter' class='twitter' st_via='[@theathere]'></span>
<script type='text/javascript'>
var defaults = {
"service": "twitter",
"element": …,
… etc,
}
stWidget.addEntry(defaults);
</script>
it will automatically add the st_via='' try it.
版权声明:本文标题:javascript - Remove or customise "via @ShareThis" when adding ShareThis button dynamically - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744076855a2529510.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论