Forums

Share Buttons by Lockerz / AddToAny
[resolved] How/Where to add customization to include twitter h (5 posts)

  1. cliffmama
    Member
    Posted 4 months ago #

    I have AddToAny installed, and when someone shares my posts/pages, etc., through twitter, I want my twitter handle @cliffmama to be included in the retweet. I saw the link for the custom code - but I don't know how to program in PHP and don't know where I'm supposed to add this code to customize my shared tweet. Please advise.
    Thanks!

    http://wordpress.org/extend/plugins/add-to-any/

  2. micropat
    Member
    Posted 4 months ago #

    Sure, just drop the following code in the Additional Options box located in Settings > AddToAny:

    a2a_config.templates = {
        twitter: "Reading: ${title} ${link} by @cliffmama"
    };
  3. incognitoJ
    Member
    Posted 4 months ago #

    I was also looking to add the twitter-handle to my tweets. I tried what you suggested above, but it didn't change anything. Is this because I'm using the standalone twitter button, rather than the standard "addtoany" buttons?

    Any chance you can advise on where to add the code for my situation?

    Thanks!

  4. micropat
    Member
    Posted 4 months ago #

    @incognitoJ this doesn't work yet for the standalone Twitter Tweet button, but it's planned!

  5. incognitoJ
    Member
    Posted 4 months ago #

    Ok, I'll keep an eye out for the change. Thanks for the update!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags