[ad_1]
Hi folks. I’m working on integrating a google calendar into a wordpress website.
I’m using Elementor’s HTML widget.
After I paste in the embed code, the calendar shows up in the working screen, but once it’s published, or even in preview mode, the calendar doesn’t show up.
When I check the backend after it’s published, it’s as though I never pasted the code at all. Just a blank html widget.
Any thoughts as to why that might be and how to fix it?
[ad_2]
**Why?**
Google’s Calendar embed is an iframe. iframes are a security threat (common attack vector) so it’s getting filtered out (specifically by the [wp_kses_allowed_html])(https://developer.wordpress.org/reference/functions/wp_kses_allowed_html/) function).
**How to fix it?**
If you use Essential Addons, they have a [Calendar Widget]). If not, maybe look for another plugin.