• Resolved yarolin

    (@yarolin)


    Hi 2all,
    I had a problem with replacing the action when I clicked on the icon. For example, I would like to send a message to some number when I click on Vhatsapp.
    Here’s how to implement a title=”WhatsApp” href=”//send?phone=+120345678910″> WhatsApp /a. Please, tell me where and what to change, I’m new and do not quite understand where to change. Can you help me with this?

    • This topic was modified 6 years, 5 months ago by yarolin.
    • This topic was modified 6 years, 5 months ago by yarolin.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author micropat

    (@micropat)

    You can use AddToAny Templates to set a phone number for WhatsApp.

    For example, add the following JavaScript code to your “Additional JavaScript” box in Settings > AddToAny:

    a2a_config.templates.whatsapp = {
        phone: "15551234567",
        text: "I'm interested in ${title} posted here: ${link}"
    };
    Thread Starter yarolin

    (@yarolin)

    Thank you very much, only meaning that the user on the site could himself write a message, in the form of feedback, can this be done?

    Plugin Author micropat

    (@micropat)

    Yes, it’s possible — developers can change AddToAny templates within the AddToAny share event.

    Thread Starter yarolin

    (@yarolin)

    Tnks so much, I’ll try to do))

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I change the action when I click on the icon’ is closed to new replies.