Home > Tutorials > Add Twitter Name to AddToAny WordPress Standalone Tweet

Add Twitter Name to AddToAny WordPress Standalone Tweet

addtoany

If you’ve installed the AddToAny WordPress Plugin you may have noticed that the standalone twitter button doesn’t @mention the owner of the blog. By having your twitter name mentioned when people click the tweet button on your website, you can gain a lot of insight on who you readers are.

Heres how to add your Twitter name to your AddToAny standalone Twitter button:

  1. Navigate your your theme’s plugin’s folder and find the “add-to-any” folder.
  2. Open the add-to-any.php file.
  3. Find this line of code:
    'http://platform.twitter.com/widgets/tweet_button.html?
    url=' . $linkurl_enc . '&counturl=' . $linkurl_enc . '&
    count=horizontal&text=' . $linkname_enc, 100);
  4. After
    horizontal$amp;

    add

    via=YourTwitterName&
    
  5. Make sure your code looks like this except with your twitter name instead of AnsonAlex:
    'http://platform.twitter.com/widgets/tweet_button.html?
    url=' . $linkurl_enc . '&counturl=' . $linkurl_enc . '&
    count=horizontal&via=AnsonAlex&text=' . $linkname_enc, 100);

Anson Alexander

Anson Alexander is a technical educator and problem-solver with over 320,000 YouTube subscribers and 60+ million views. He creates hands-on tutorials focused on real-world fixes for operating systems, software, and unsupported configurations, with an emphasis on solutions that go beyond official documentation.

View all posts