It is easy to add the WhatsApp chat service to one or more of your Pressero storefronts.
Take a look into the following snippet code, copy and paste it in a text tool, such as Notepad++, VisualStudio, etc., and edit your contact details before entering in Pressero:
<!-- GetButton.io widget -->
<script type="text/javascript">
(function () {
var options = {
whatsapp: "+34666000000", // WhatsApp number
call_to_action: "Short Message", // Call to action
button_color: "#4dc247", // Color of button
position: "right", // Position may be 'right' or 'left'
pre_filled_message: "Your prefilled message", // WhatsApp pre-filled message
};
var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host;
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
})();
</script>
<!-- /GetButton.io widget -->
The above snipped code should be entered in Site > Site Name > Settings > SEO/HTML tab.
Expand the option
HTML content for bottom of <head> section and paste the code.
Please Note: You have to enter your Country Code + Area Code + Phone Number. If you don't know your country code, then click
here
In the " call_to_action " tag, you can also add a short message, e.g., " Need some help? "
Article ID: 2243, Created: October 1, 2021 at 12:50 PM, Modified: May 23, 2022 at 1:02 PM