Insert Global Script in <body>

Hi Guys,

I’m trying to globally inserting a chat widget (code below) within

I don’t currently have access to the site via FTP to modify the functions.php file, so I tried adding in Theme Options>Global CSS which didn’t work, so then I tried to add it in Theme Options>Global JS which also didn’t work…

I have a child theme, so I also tried adding it in the Customize Pro in Child Themes option - no luck.

What do you suggest?

Thanks so much!

Update: My message was truncated because I used < >

The first line of my post was supposed to read:

I’m trying to globally inserting a chat widget (code below) within the body (not header or footer)

Hi @jonathanrockett,

Thank you for writing in, please do note that regretfully, we cannot provide support for third-party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to our theme will need to be directed to the original developer. With that said you can follow the method provided below

How to Easily Add JavaScript in WordPress Pages or Posts

Technically footer is still inside the <body> tag so you can use the Insert Headers and Footers plugin and insert your script on the footer.

Cheers!

Thanks so much for the reply… Yes, I know you can’t address 3rd party code, so this is just a general question about embedding scripts in Pro.

Thanks for the heads up on the “Insert Headers and Footers” plugin… I’ve inserted the code for the body section (per below), still nothing… I thought it might be a plugin conflict (although I also tried deactivating all plugins), but then I tried it on on another X/Pro website I use for dev… and still nothing…

I’m reaching out to Birdeye (the embed), but I’d like to know your thoughts on possible causes of this as well…

Thanks again!

The plugin recommended works perfectly for me.

I think you should check if the code you’re trying to insert works as Intended.

Hi @jonathanrockett,

I did take a quick look on your site, and I see the script is properly added on your site now (see screenshot below), and I don’t see any JS error that can hinder the script.

Yes, please contact the Birdeye support.

Cheers!

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