Christiann
Member
Posted 6 months ago #
Every time someone clicks the twitter icon on my AddThis, they get a link like this:
Spoiler Alert http://bit.ly/vbuMy7 via @AddThis
I would like it to be more like:
Spoiler Alert http://bit.ly/vbuMy7 by @stickycomics
I tried making some changes including a recommendation from the AddThis forum, but it isn't working, so I wondered if the WP plugin might be a little different.
Here is an example page where I'm having trouble: http://www.stickycomics.com/spoiler-alert/
Thanks for any ideas :)
http://wordpress.org/extend/plugins/addthis/
In a custom button, I have this and it works:
<a class="addthis_button_tweet" tw:via="YourTwitterAccount"></a>
Christiann
Member
Posted 6 months ago #
Thanks, that does work for me, but it creates the "Tweet" button rather than the simple Twitter button I was going for.
However, I found a solution that worked today for modifying just the Twitter button on my AddThis toolbar. I had to add the following code (copied from this AddThis forum post) to the footer.php of my page above the closing </body> tag. I didn't work when I added it to the <head> tag of my header.php for some reason.
<script>
var addthis_share = {
templates : {
twitter : "{{title}} {{url}} (via @twitter_username)"
}
}
</script>
I'm glad it's working for you. I used to do it that way as well.