Title: Javascript does not load
Last modified: June 28, 2017

---

# Javascript does not load

 *  Resolved [Sventas](https://wordpress.org/support/users/sventas/)
 * (@sventas)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/)
 * Hello there,
 * Thank you for the plugin. However, I have a problem with jQuery. I use shortcode
   in editor, which created an image map area. The image is getting loaded in pop-
   up without the problems, however, the jQuery script is not loaded at all. Example
   of jQuery:
 * <script>
    jQuery( function($) { $(‘#floor-maps-1’).mapster({ staticState: true,
   stroke: false, mapKey: ‘data-key’, fillColor: ‘ffffff’, singleSelect: false, 
   clickNavigate: true, showToolTip: true, toolTipContainer:'<div class=\”tooltip\”
   ></div>’, areas: [“.$areas.”
 *  ]
    }); }); </script>

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

 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9399824)
 * [@sventas](https://wordpress.org/support/users/sventas/)
    Could I see your implementation
   please?
 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9486907)
 * Closing due to no response in over 2 weeks.
 *  [marekbo12](https://wordpress.org/support/users/marekbo12/)
 * (@marekbo12)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9584607)
 * I have this same problem. jQuery doesn’t work, because content from popup is 
   not visible in source code – thats my opinion. What I have to do?
 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9584765)
 * There are two options if you want jQuery from the source page to work.
 * 1) Include the jQuery on all page using your child theme or a plugin
    2) Use 
   the legacy method of the plugin (released in the latest version), and create 
   a custom template that wraps everything, including the jQuery in the modal-ready
   div. Documentation for this can be found here: [https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin](https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin)
 *  [marekbo12](https://wordpress.org/support/users/marekbo12/)
 * (@marekbo12)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9584846)
 * Thanks for quickly reply!
    I am not sure if I understand you. I load content 
   to popup from post. In this post I have simple SVG map. I have jQuery script,
   which makes various changes when you click on map. It works when I am in post
   page, but when content from this post is loaded in popup – nothing happened. 
   When popup is shown, there is no html code when I click ctrl+u (in chrome) to
   choose source code page. I added php code to functions.php from your link above
   and enable legacy mode, but nothing happened. What I can to do also?
 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9584991)
 * Where is the jQuery script located? Is it inside the post content or included
   in the footer/header?
 *  [marekbo12](https://wordpress.org/support/users/marekbo12/)
 * (@marekbo12)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9585152)
 * in <head>, I use Simple Custom CSS and JS plugin to add JS
 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9585191)
 * Please email me through the contact form on my website: [https://allurewebsolutions.com/contact](https://allurewebsolutions.com/contact)
 * This will require more in depth investigation.

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

The topic ‘Javascript does not load’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-does-not-load-3/#post-9585191)
 * Status: resolved