• Resolved leewilloughby

    (@leewilloughby)


    Hi,
    I’d like to add a whatsapp social icon to my site rspropertyservices.net but what format do I use to add it in the social media section of the customiser?
    Does the button then open the app to send a message like the mailto function?
    Many thanks,
    Lee.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’d also like to know this! I’ve got it on my site at the moment but it doesn’t do anything…

    Ben

    Theme Author Ben Sibley

    (@bensibley)

    Hey guys,

    The Whatsapp icon currently opens a regular URL like most of the other social icons. I haven’t yet added support for special link formats such as with the Skype icon.

    Thread Starter leewilloughby

    (@leewilloughby)

    I’ve had a look into it and as far as I can tell you would need different code for Android or Apple to make the link bring up the app? Is there any way to change the icon to a messenger one as you can generate a link for that..
    Great theme btw!
    Cheers
    Lee.

    Theme Author Ben Sibley

    (@bensibley)

    Yea the part that needs to be updated is the security filter in the theme. Tracks uses esc_url() to make sure a valid URL is being used and the WhatsApp protocol is not one of the supported protocols. That’s why if you enter a WhatsApp link now it gets removed when the Customizer settings are saved.

    Based on the docs, it looks like the link should open WhatsApp with a prefilled message when clicked. Maybe instead of a URL field, the input can let you choose the prefilled message? How does that sound?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Whatsapp format’ is closed to new replies.