Streaming live at 10am (PST)

Whatshelp Custom code script not working


#1

Hi, I try to generate a widget through whatshelp

  1. got my script
    <script type="text/javascript">
    (function () {
        var options = {
            call_to_action: "Message us", // Call to action
            button_color: "#000000", // Color of button
            position: "right", // Position may be 'right' or 'left'
        };
        var proto = document.location.protocol, host = "whatshelp.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>
    <!-- /WhatsHelp.io widget -->
  1. put it on my page setting
  2. publish site to webflow.io domain
  3. it’s not working

please help


#2

Hi, it does not work because you deleted the contact for communication. In particular, this line:
whatsapp: “+1234567890”, // WhatsApp number

<!-- /WhatsHelp.io widget -->
	<script type="text/javascript">
(function () {
    var options = {
        whatsapp: "+1234567890", // WhatsApp number
        call_to_action: "Message us", // Call to action
        button_color: "#000000", // Color of button
        position: "right", // Position may be 'right' or 'left'
    };
    var proto = document.location.protocol, host = "whatshelp.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>