MyBB Community Forums

Full Version: Adding a Whatsapp button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
1.

<a href="https://wa.me/country code number" target="_blank"><i class="fab fa-whatsapp"></i></a>

2.

<script type=”text/javascript”>

(function () {

var options = {

WhatsApp: “+ country code number”, //

call_to_action: “Hello, text?”, // whatsapp go

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>

Footer templates

getbutton
https://getbutton.io/
omg thank you that1s what i was looking for!
(2022-02-08, 08:37 AM)Anka06 Wrote: [ -> ]1.

<a href="https://wa.me/country code number" target="_blank"><i class="fab fa-whatsapp"></i></a>

2.

<script type=”text/javascript”>

(function () {

var options = {

WhatsApp: “+ country code number”, //

call_to_action: “Hello, text?”, // whatsapp go

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>

Footer templates

getbutton
https://getbutton.io/

Maybe you should edit this page and tell where people need to add it on templates, this is confusing new users.