• Resolved chefjoef

    (@chefjoef)


    I am trying to include a Hubspot form code in a popup, but it doesn’t seem to be running the code. Do I need to do something special so that code inside the popup will be run?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Philipp Stracker

    (@strackerphil-1)

    Hi @chefjoef

    Popups for Divi removes/hides Popups on page load. Because of that, some third-party JavaScript code can have trouble initializing content inside the Popup.

    Our premium plugin has some smart initialization logic, which works well with Hubspot out-of-the-box. I.e. you only need to activate the pro plugin and the Hubspot form starts working inside your Popup.

    However, the free plugin can also do the trick, but you need to wrap the JS code. You can have a look at our Script Generator to adjust your existing script for the free plugin – you need the event “Run code, when Area is opened”.

    I hope this helps you to integrate the Hubspot form into the Popup 🙂 Philipp

Viewing 1 replies (of 1 total)

The topic ‘Hubspot Javascript in Popup’ is closed to new replies.