Adding code to footer before closing /body tag

Hi there,
I need help figuring out where to add some code.

I need to add this script to the child theme -

<script src="[https://chatbot.textchat.ai/client/shopify/js/widget.js?clientToken=9514884e-a37a-4f55-a651-b40a03b4e832&basePath=https://chatbot.textchat.ai&iFramePath=https://chatbot.textchat.ai/root"></script](https://chatbot.textchat.ai/client/shopify/js/widget.js?clientToken=9514884e-a37a-4f55-a651-b40a03b4e832&basePath=https://chatbot.textchat.ai&iFramePath=https://chatbot.textchat.ai/root%22%3e%3c/script)>

I know how to edit the file structure and build the right one in a child theme, but I am unsure of which file to edit since all of the changes to Pro in the last year.

Which PHP file should I add this code to in the themes file structure? ( I will create a new structure within the child)

blendwebmarketing.com is the website I am trying to add this on.

Thanks for the help!

Hello @powrider686,

Thanks for writing in! The easiest way to insert this code is to use Insert Headers and Footers plugin. Once you have this installed, all you have to do is to insert the your JS code in Settings > Insert Headers and Footers > Footers and you’re done. No coding required in the child theme.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.