• Resolved Sventas

    (@sventas)


    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

    (@allurewebsolutions)

    @sventas
    Could I see your implementation please?

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    Closing due to no response in over 2 weeks.

    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

    (@allurewebsolutions)

    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

    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

    (@allurewebsolutions)

    Where is the jQuery script located? Is it inside the post content or included in the footer/header?

    in <head>, I use Simple Custom CSS and JS plugin to add JS

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    Please email me through the contact form on my website: 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.