Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author micropat

    (@micropat)

    The Tweet button message isn’t as customizable, but with AddToAny’s square Twitter icon you can customize the message sent to Twitter.

    Settings > AddToAny > add the following JavaScript code to your “Additional Options” box:

    a2a_config.templates = {
        twitter: "${title} ${link} via @Culture_Ant"
    };

    URL shortening is not necessary anymore, but you can turn on Google Analytics URL parameters, or Bitly, etc. if you’d like to track shared links.

    Thread Starter cxvergara

    (@cxvergara)

    Thank you very much! I have added the script and that seems good enough for me.
    I had no idea that URL shortening is not necessary anymore, thank you again for the information.

    🙂

    Hi Micropat. I have tried adding that code to mine and nothing has changed. What am I missing? Do I need to clear the cache? Update to latest version (I’m on 1.3.1)? Here is my blog:

    http://www.drryanllera.com

    I’m trying to get the Twitter share to read: “title, URL, by @DrRyanLleraDVM” Thank you!

    a2a_config.templates = {
    twitter: ” ${title} ${link} by @DrRyanLleraDVM”
    };

    Plugin Author micropat

    (@micropat)

    @drrmldvm As mentioned above, the Tweet button message isn’t as customizable, unfortunately. Switch from Tweet to AddToAny’s square icon and your custom message will work. In fact, it’s already working for Twitter right now in your drop-down share menu.

    Hi there…
    What about adding category name to Twitter shares.

    Like that:

    twitter: " ${category_name} ${title} ${link}"

    Can we do this?

    Is there any plugin author here to help us?

    Plugin Author micropat

    (@micropat)

    @finhat It’s not easy to include other variables in the Twitter message template yet, but that feature is planned.

    @micropat ok, thanks…

    Hi @micropat. Just installed your plugin today and have been super impressed with it. I am trying to customize the AddToAny square Twitter icon (as stated at https://www.addtoany.com/buttons/customize/wordpress/twitter_message), but I am not able to customize it. Specifically, when I try to replicated the example in the previous link my Twitter handle doesn’t appear. Can you please confirm that the instructions in the previous link are still valid?

    Also, do you have any tips or previous posts on how to customize the menu for mobile, other than the great native options that are provided in the plugin? So far I have hidden the Whatsapp and Email buttons for screen sizes bigger than 980px using CSS (min-width display: none !importat), but if you have a more elagant suggested I would appreciate it!

    Thanks a lot for your help!

    Plugin Author micropat

    (@micropat)

    @adamburgh You should post a new topic with a link to your site so folks here can look at why your custom Twitter message isn’t working. Before you do that, check your web browser’s JavaScript console to see if the site has any JavaScript errors.

    CSS media queries are the best way to show/hide the share buttons on mobile/desktop. You’re doing it right.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Twitter links’ is closed to new replies.