WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
[resolved] [Plugin: AddToAny: Share/Bookmark/Email Buttons] How/Where to add customization to include twitter h (9 posts)

  1. cliffmama
    Member
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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. Jim
    Member
    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

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

  5. Jim
    Member
    Posted 2 years ago #

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

  6. ymf
    Member
    Posted 2 years ago #

    This still doesn't work yet for the standalone Twitter Tweet button. I'm looking forward for the change too. Thanks!

  7. editor
    Member
    Posted 2 years ago #

    When will you let this feature to apply to standalone Twitter button too? I think the current setup is limitation of your otherwise excellent plugin.

  8. Jim
    Member
    Posted 1 year ago #

    I'm still really hoping to see this change implemented. Just updated to the newest version hoping it might have been, but no luck. Bummer.

  9. ymf
    Member
    Posted 1 year ago #

    I'm waiting too. It's odd that the topic is marked as "resolved".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags