Home Forums WoodMart support forum Widget Chatbot to Clientify Marketing CRM Reply To: Widget Chatbot to Clientify Marketing CRM

#518327

Hello,

I think you misunderstood that what the “Global custom JS” and “On document ready” fields are for. These fields are intended for pure JavaScript code. Example:

let x;
x = 6;
document.getElementById("demo").innerHTML = x;

What you need is to connect the script file to the HTML page. These actions are not directly related to the custom JS code and are done completely differently.

To insert the script to the site HTML, you needs to install the child theme and add the following code to into functions.php file:

`add_action( ‘wp_footer’, function () {
echo ‘‘;
}, 100 );`

I hope now you can understand it.

Best Regards.