WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. parforchina
    Member
    Posted 4 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
    Member
    Posted 4 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
    Member
    Posted 4 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;

    http://www.addtoany.com/buttons/customize/link_tracking

    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
    Member
    Posted 3 years ago #

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

  5. ocube
    Member
    Posted 3 years ago #

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

  6. micropat
    Member
    Posted 3 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"
    };

    http://www.addtoany.com/buttons/customize/twitter_message

    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

Tags