We have the Hubspot plugin installed and we use shortcode to display the form using the Elementor Page Builder. We are having issues with 2 iframes generated when we use the inspect element on the browser.
to the embed code you’re disabling the default CSS from HubSpot and the CSS should be grabbed from your WordPress theme (you might need to add/modify it slightly)
Hello Anton,
I’m Rico and I’m one of his developers on that site. We actually tried that solution and still, we are having the extra white spaces issue on the pop-up.
Here’s how I did it:
To further expand this, when we use the shortcode from the Hubspot plugin, we are getting javascript error when looking at the console tab from inspect element. See here:
We have two caching system on the site. One is from the wpengine and one is from the WPRocket.
I think it’s worth a try if we can have ways to exclude the javascript files from the Hubspot plugin to the WPRocket settings so that it will not be cached. What do you think?
Looking forward to your solution.
This is a bug - and the worst part that if we have another form in the page - the one that should be in the popup is injecting itself to the form on the page.
Loading the form by html and not a shortcode on elementor popup loads an iframe with an empty body.
I’m dealing with the same issue. This is compounded by a custom post type using an Advanced Custom Field for pop-up content. It will work with a Pardot iFrame but not with Hubspot JS. I’ve tried to insert even one form JS manually via PHP and still doesn’t load. I’ve tried adding the first JS library script tag seperately so it’s there on page load and doesn’t work either. Incidentally we also use WP Rocket and also have Godaddy for caching. But even locally on my laptop I can’t get the form to show.
I was having this trouble. I tried many solutions but at the end of the day I think it was both the wordpress site caching via a plugin, godaddy.com caching (with managed wordpress) and then possibly cloudflare caching. I came back after a weekend and suddenly the hubspot shortcodes worked in the Elementor Pro popups for corporate website. However, I had to use the Wordpress Hubspot section in admin to get the shortcodes.
The main point, try clearing any cache you can.
If you go to this page on our site, click the ebooks filter/button and click one, these are hubspot shortcodes for forms. Learning Center | Speedeon
Nothing special going on, but apparently until the various caches were cleared and purged it would show no shortcodes for hubspot in the elementor pro pop-ups.