[Plugin: AddToAny: Share/Bookmark/Email Button] What if I don't want URLs shortened? (6 posts)

  1. parforchina
    Posted 6 years ago #

    How can I get AdToAny to stop shortening URLs with Bitly? And how can I drop the "via @AddToAny" from Tweets?

  2. parforchina
    Posted 6 years ago #

    OK. I figured out how to drop the "via @AddToAny". Now how can we just use the normal link instead of the Bitly one?

  3. micropat
    Posted 6 years ago #

    The only elegant way to do this is to have it share the current page's URL:

    var a2a_config = a2a_config || {};
    a2a_config.track_links = 'custom';
    a2a_config.track_links_key = location.href;


    If you do it this way, you might want to disable AddToAny from showing on the front page, otherwise the shared link will be the URL of your blog's homepage.

  4. cozbaldwin
    Posted 5 years ago #

    So can you explain how you figured out how to drop "via @addtoany" and maybe replace it with "via @MyOwnTwitterName"

  5. ocube
    Posted 5 years ago #

    Hey all, would love to know how to drop @ddtoany as well...

  6. micropat
    Posted 5 years ago #

    Changing the Twitter message is fairly easy. For instance, just place the following code in WP Settings > Share/Save Buttons > Additional Options box:

    a2a_config.templates = {
        twitter: "Check out ${title} ${link} by @MyOwnTwitterName"


    In the code above just modify the message between the quotes. Be sure to include the ${link} variable, and probably the ${title} variable as well.

Topic Closed

This topic has been closed to new replies.

About this Topic