I’m trying to embed a chatbot into my WordPress site. The chatbot works fine when I click Preview, but it doesn’t show up on the live page.
Here’s what I’ve tried so far:
- I first embedded the code (which includes both the script and the div for the chatbot) directly into a Custom HTML block on WordPress. Again, the chatbot works fine when I click Preview, but it doesn’t show up on the live page.
- Then, I added the script code to the header using WPCode and the display code (the
<div id="HVAC_Specialist_Chatbot_Z8PG1"></div>
) to the page via shortcode, but the same issue persists—chatbot works in preview, but not on the live page. - The inline (iframe) embedding option does work, but I’d like to get this new script-based embedding method working.
Yes, I’ve tried clearing my cache many times, and the issue remains.
Any advice on why this approach isn’t functioning on the live page and what steps I should try next?