Voice Widget not loading on my Wordpress site.
# support
Thank you for creating for such an amazing platform.. I've added my Assistant ID & Public Key from the dashboard. I do see the word "Assistant" in the header portion on my site (screenshot). whenever I hover over it, it shows my domain name, HonnyDo.com/# nothing else happens. I've simply copied the Voice Widget html and installed a "Code Snippet" plugin to my wordpress site that adds the Vapi html to my header. I've also added my Assistant ID & Public Key (not private key) and still not getting anything to show up on my site. I would appreciate any assistance you can give me! All the best, Vidal
Hi @vidal6503, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Voice Widget Example]() * [Get Assistant]() * [Delete Assistant]() * [Vapi Python SDK]() -----------------------------
### Answer It sounds like you've done the correct initial steps by adding the Assistant ID and Public Key to the Voice Widget code snippet on your WordPress site. However, there are a few common issues that might prevent the Voice Widget from loading or functioning correctly: 1. **JavaScript Errors**: Ensure there are no JavaScript conflicts or errors on your site which might interfere with the widget's script. You can check this by inspecting the browser's developer console (usually accessible by pressing F12 or right-clicking the page and selecting 'Inspect'). 2. **CORS Policy**: Cross-Origin Resource Sharing (CORS) issues can prevent scripts from loading correctly if your site's security settings are blocking external scripts. This is less likely but worth considering if you see related errors in the developer console. 3. **Incorrect Placement**: The script should ideally be placed just before the closing
tag. While placing it in the header should work, some themes or plugins might interfere with scripts placed in the header. 4. **Cache**: If you're using a caching plugin or service (like Cloudflare), ensure you clear the cache after adding the snippet. Caching might serve an older version of your site without the new changes. 5. **Correct API Key and Assistant ID**: Double-check that you're using the correct Public API Key and Assistant ID, ensuring there are no typographical errors. 6. **Compatibility Issues**: Some WordPress themes or plugins might not play well with external scripts. Try temporarily switching to a default WordPress theme (like Twenty Twenty-One) and deactivating other plugins to rule out conflicts. If after checking these areas you still face issues, you might consider reviewing the documentation or reaching out to the community for specific advice related to your setup or any error messages you're encountering. Unfortunatel
y, without direct access to error logs or more detailed information about the issue, it's challenging to provide a precise solution. For additional troubleshooting, you could also refer to the Vapi documentation and examples as they might offer insights or alternative methods for integrating the Voice Widget into your site [(1)]() , [(2)]() . Should you continue experiencing difficulties, it might be beneficial to seek assistance from a developer familiar with WordPress and external API integrations, as they could offer more personalized support based on your site's specific configuration and the errors observed.
Check your DM.
@Sahil Ok, will check now. Thank you!