Skip the prose and go straight to the code. ShareThis is a very popular if not the most popular social sharing service on the web, you can find it on this site and many other sites from the SEO and web design industries, social media and just about any area of the web that uses social media to incentivise users to share content on Twitter, LinkedIn, Google+, Facebook and countless other social networks. A couple of random examples are Forbes and the RTP Portugal’s main TV channel.
The two sites above are just some examples where the via @sharethis, when sharing on Twitter is set up by default to attribute the content and generate a twitter mention, to SahreThis and not the site creating the content. This is just frustrating for site owners as the screenshot above shows, a very large number of people search for “How To Change via @sharethis” on Google.
Not even Forbes managed to get this right.
In the WordPress plugin go to the options panel and locate:
+Click to view/modify the HTML tags
That will expand and you will find something similar to the image below.
Your code should look like the span tag below.
<span class='st_twitter_hcount' st_title='<?php the_title(); ?>' st_url='< ?php the_permalink(); ?>' displayText='twitter'></span>
Insert the following code anywhere within the span tag, at the end would probably be easier to locate.
Obviously change “pedro_matias” to whatever your “username” is.
<span class='st_twitter_hcount' st_title='<?php the_title(); ?>' st_url='< ?php the_permalink(); ?>' displayText='twitter' st_via='pedro_matias'></span>
You may also want to add it to the main ShareThis button if you’re using it. As in the image above.
In order to remove the via altogether add:
(That’s two single quotes followed by a double quote). The above comes from the ShareThis forum.
This works for WordPress, but it is very, very fiddly, at least in my case, really; I just wish that ShareThis (in case any of you reads it) provided as simple way to make the change hard coded in the plugin rather than try and get unwarranted Twitter mentions. Plugin which by the way, with every update gets buggier and buggier with share counts changing wildly from visit to visit. Although, in truth there’s probably nothing better around.
Anyhow, let me know if you found this helpful. Ah, and share… THIS!
Update: As of yesterday, 19/07/12 this post is pretty much redundant. Unless your’re using earlier versions of the plugin, version 5.2.1 released yesterday added: “Ability to promote your twitter handle using the ‘via’, ‘related’ options on the Twitter share button”. Good work ShareThis!