Title: Hubspot Javascript in Popup
Last modified: February 18, 2021

---

# Hubspot Javascript in Popup

 *  Resolved [chefjoef](https://wordpress.org/support/users/chefjoef/)
 * (@chefjoef)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/hubspot-javascript-in-popup/)
 * 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](https://wordpress.org/support/users/strackerphil-1/)
 * (@strackerphil-1)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/hubspot-javascript-in-popup/#post-14073442)
 * Hi [@chefjoef](https://wordpress.org/support/users/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](https://divimode.com/divi-areas-pro/) 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](https://divimode.com/knowledge-base/divi-areas-script-generator/#code-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.

 * ![](https://ps.w.org/popups-for-divi/assets/icon-256x256.jpg?rev=2553226)
 * [Popups for Divi](https://wordpress.org/plugins/popups-for-divi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups-for-divi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups-for-divi/)
 * [Active Topics](https://wordpress.org/support/plugin/popups-for-divi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups-for-divi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups-for-divi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Philipp Stracker](https://wordpress.org/support/users/strackerphil-1/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/hubspot-javascript-in-popup/#post-14073442)
 * Status: resolved