WhatsApp Multi Agent contact form permit a lot of spam

  • Posted by TemplatePlazza (5261) Offline

How to disable the wa_bgsound Cookie from your plugin? I dont want to have a "click" sound when open the page.

You can edit this file modules/mod_whatsapp_agent/tmpl/default.php directly or by doing a template override. Delete the these lines in the file (at the end of file):
<?php 
$cookie_wa_bgsound = $app->input->cookie->get('wa_bgsound', null);
if(!isset($cookie_wa_bgsound)) {
?>
<audio src="modules/mod_whatsapp_agent/tmpl/assets/sound/click.mp3" type="audio/mpeg" autoplay></audio>
<script>
jQuery(document).ready(function() {
	Cookies.set('wa_bgsound', 'yes', { expires: 7, path: '/'});
});
</script>
<?php } ?>
3 years 7 months ago #7 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum