Title: Javascript disabled/missing in popup content?
Last modified: October 15, 2018

---

# Javascript disabled/missing in popup content?

 *  Resolved [scpete](https://wordpress.org/support/users/scpete/)
 * (@scpete)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-disabled-missing-in-popup-content/)
 * Hi,
 * First, thanks for your plugin. It was exactly what I needed for a project I am
   working on. Unfortunately, in one instance, I am encountering an issue with javascripts
   being disabled on a page displayed in the popup. I am trying to embed a Cognito
   form into a post and then display the post in the popup. To style the form and
   for it to function properly, javascripts are needed, but they are not functioning
   in the popup.
 * The page I am displaying in the popup is here: [http://rrd.cfnapareview.com/wine-club/wine-club-form-cognito/](http://rrd.cfnapareview.com/wine-club/wine-club-form-cognito/).
   The page where the popup is triggered is here: [http://rrd.cfnapareview.com/wine-club-form-test/](http://rrd.cfnapareview.com/wine-club-form-test/)(
   to trigger popup, click on one of the “Sign Up Now” buttons).
 * When the page with the embedded form is opened by itself, it displays with a 
   red background, which is being added via javascript. When that same page is displayed
   in a modal popup, the javascript that colors the background red is disabled (
   actually missing when inspected). I have tested this with a number of other scripts
   and none of them function in the modal popup. It is as if the scripts are being
   stripped out when the content is displayed in the modal Any thoughts on why this
   might be happening? I would really appreciate any insights you might provide.
 * Thanks,
 * Pete Skram
    -  This topic was modified 7 years, 7 months ago by [scpete](https://wordpress.org/support/users/scpete/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-disabled-missing-in-popup-content%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-disabled-missing-in-popup-content/#post-10791454)
 * [@scpete](https://wordpress.org/support/users/scpete/) Any script tags would 
   need to be added manually inside of the modal-ready div. Scripts outside the 
   modal-ready div will not be included in the popup.
 * [https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin#customize](https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin#customize)
 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-disabled-missing-in-popup-content/#post-10807744)
 * Closing due to no further inquiry
 *  Thread Starter [scpete](https://wordpress.org/support/users/scpete/)
 * (@scpete)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-disabled-missing-in-popup-content/#post-10807843)
 * Sorry for not replying sooner. I did not receive a notice that you had responded.
   I appreciate the information and will try making a custom template.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Javascript disabled/missing in popup content?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-modal.svg)
 * [WP Post Popup](https://wordpress.org/plugins/wp-post-modal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-modal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-modal/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-modal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-modal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-modal/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [scpete](https://wordpress.org/support/users/scpete/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-disabled-missing-in-popup-content/#post-10807843)
 * Status: resolved