<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hubspot shortcode issue with Elementor Pop-up in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/594554#M27817</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt; ever deal with this &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 19:20:39 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2022-03-14T19:20:39Z</dc:date>
    <item>
      <title>Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/592869#M27813</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rchafei_0-1647005851482.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/61468iE1FD19C0CB6C065E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rchafei_0-1647005851482.png" alt="rchafei_0-1647005851482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It generates two id’s of the iFrame tag.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Hs-form-iframe-0&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Hs-form-iframe-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We use the Elementor Pop-up to display the shortcode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can we get rid of the white space on embed forms?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 13:39:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/592869#M27813</guid>
      <dc:creator>rchafei</dc:creator>
      <dc:date>2022-03-11T13:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/594554#M27817</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt; ever deal with this &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 19:20:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/594554#M27817</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-03-14T19:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/594855#M27821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/303413"&gt;@rchafei&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please provide a "preview" link to this page?&amp;nbsp;&lt;BR /&gt;Seems like a CSS misbehavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try to embed the form without CSS styling by modifing the embed code as this in the mean time:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;original code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	region: "na1",
	portalId: "XXXXXXX",
	formId: "XXX-XXX-XXX"
});
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;modified code:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	region: "na1",
	portalId: "XXXXXXX",
	formId: "XXX-XXX-XXX",
        css:''
});
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by adding&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;css:''&lt;/LI-CODE&gt;
&lt;P&gt;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)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 07:36:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/594855#M27821</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-03-15T07:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/596563#M27856</link>
      <description>&lt;P&gt;Hello Anton,&lt;BR /&gt;&lt;BR /&gt;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.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here's how I did it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/61933iF5B3AE1C38B496DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;and here's the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (1).png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/61934iC89CF10429AC9260/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image (1).png" alt="image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;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:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (2).png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/61935iC6F3AA451C7CEBD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image (2).png" alt="image (2).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We have two caching system on the site. One is from the wpengine and one is from the WPRocket.&amp;nbsp;&lt;BR /&gt;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?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Looking forward to your solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 11:28:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/596563#M27856</guid>
      <dc:creator>dev_rico</dc:creator>
      <dc:date>2022-03-17T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/660124#M29347</link>
      <description>&lt;P&gt;We are having the exact same issue.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Loading the form by html and not a shortcode on elementor popup loads an iframe with an empty body.&lt;/P&gt;&lt;P&gt;How can we fix this?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:20:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/660124#M29347</guid>
      <dc:creator>OshriHumanz</dc:creator>
      <dc:date>2022-07-05T14:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/679655#M29999</link>
      <description>&lt;P&gt;So guys, care to post the solution? I'm having the same issue. White space in HTML code block.&amp;nbsp;&lt;BR /&gt;Please help me sort this out! Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 09:52:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/679655#M29999</guid>
      <dc:creator>AaaBbb</dc:creator>
      <dc:date>2022-08-12T09:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/834240#M35431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/303413"&gt;@rchafei&lt;/a&gt;&amp;nbsp;, I had the same issue, so it's still a going on. But here is a youtube video that helped me:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=WA9v_YrylIU" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=WA9v_YrylIU&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It basically wraps this code arround the script:&lt;/P&gt;&lt;PRE&gt;jQuery(window).load(function() {
	jQuery.each( elementorFrontend.documentsManager.documents, ( id, document ) =&amp;gt; {
		if ( document.getModal ) { // It's a popup document
			document.getModal().on( 'show', () =&amp;gt; {
				console.log( 'Run your script here' );
			} );
		}
	});
});&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:14:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/834240#M35431</guid>
      <dc:creator>bartt</dc:creator>
      <dc:date>2023-08-14T15:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/878740#M36716</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 17:47:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/878740#M36716</guid>
      <dc:creator>ILinder</dc:creator>
      <dc:date>2023-11-13T17:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/889583#M36994</link>
      <description>&lt;P&gt;Perfect, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 21:32:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/889583#M36994</guid>
      <dc:creator>joaomgarcia</dc:creator>
      <dc:date>2023-12-05T21:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/889601#M36995</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The main point, try clearing any cache you can.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 22:08:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/889601#M36995</guid>
      <dc:creator>ILinder</dc:creator>
      <dc:date>2023-12-05T22:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/889610#M36996</link>
      <description>&lt;P&gt;If you go to this page on our site, click the ebooks filter/button and click one, these are hubspot shortcodes for forms.&amp;nbsp;&lt;A href="https://speedeondata.com/learning-center/" target="_blank" rel="noopener"&gt;https://speedeondata.com/learning-center/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 22:22:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/889610#M36996</guid>
      <dc:creator>ILinder</dc:creator>
      <dc:date>2023-12-05T22:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hubspot shortcode issue with Elementor Pop-up</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/922902#M37902</link>
      <description>&lt;P&gt;I had the same problem, in the end I decided to not use Elementor Popup and installed Popup maker plugin.&lt;/P&gt;&lt;P&gt;That worked perfect with hsforms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone having this issue, simply use popup maker plugin and it will solve the form on popup&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 20:36:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubspot-shortcode-issue-with-Elementor-Pop-up/m-p/922902#M37902</guid>
      <dc:creator>RAnand80</dc:creator>
      <dc:date>2024-02-14T20:36:36Z</dc:date>
    </item>
  </channel>
</rss>

