Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save agilelogix/34394f1eb5cd24a6b3c2ea95e662314c to your computer and use it in GitHub Desktop.

Select an option

Save agilelogix/34394f1eb5cd24a6b3c2ea95e662314c to your computer and use it in GitHub Desktop.
## To add the WhatsApp number link in the Store Locator listing, please copy the HTML code and paste in the listing template, make sure to copy the correct template code (Template 3 has different HTML)
Please make sure to add the custom field whatsapp in the ASL Settings.
Video link for the customization tutorial
=========================================
https://www.youtube.com/watch?v=t_dGkPCGcMQ
For the List Button
====================
{{if whatsapp}}
<div class="pol">
<a href="https://wa.me/{{:whatsapp}}?text=Hello class="btn btn-asl btn-green whatsapp-btn">
<span class="d-flex align-items-end"><i class="ico-whatsapp"></i> <span>[WhatsApp]</span></span>
</a>
</div>
{{/if}}
For the List Link
=================
{{if whatsapp}}
<li>
<i class="ico-whatsapp"></i>
<a target="_blank" href="https://wa.me/{{:whatsapp}}?text=Hello">[WhatsApp]</a>
</li>
{{/if}}
For the Info-window button
==============
{{if whatsapp}}
<a target="_blank" href="https://wa.me/{{:whatsapp}}?text=Hello" class="action btn-green whatsapp-btn"><span><i class="ico-whatsapp"></i> <span>[WhatsApp]</span></span></a>
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment