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

I am an author, digital educator and content marketer. I record, edit, and publish content for AnsonAlex.com, provide technical and business services to clients and am an avid self-learner. I have also authored several digital marketing and business courses for LinkedIn Learning (previously Lynda.com).

View all posts