• Resolved mckennapoole

    (@mckennapoole)


    Hello, I created a popup to display a map short code. When I go to the actual popup page, it shows the map and works just fine. But when I use a button trigger to actually make the popup and display the map, there is some type of disconnect.

    This is the page that shows the map in the popup just fine
    https://www.deathnotices.online/popup/map/

    This page, if you scroll down to the “Click Here” button. Click it. The pop up comes up but the content is not displaying correctly
    https://www.deathnotices.online/obituary-form/

    How can this be fixed?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @mckennapoole

    Sorry you’re having difficulties, I’m sure we can this resolved.

    Interestingly, if I enlarge the map by clicking the icon in the upper right, it works perfectly, even after going back to original size.

    Try inputting the shortcode for the map inside of a <div> in the Popup Editor:

    <div style="width:100%;height:auto;">[map_shortcode]</div>

    Let us know if that helps.

    Thread Starter mckennapoole

    (@mckennapoole)

    Hello,

    Yes, I noticed that too.
    I added the code in the Popup Editor but it did not help.

    What else can we try?

    @mckennapoole

    You could try putting pixel values in for the sizes, and see if that has an effect.

    Otherwise, I’ll see if our Lead Dev @danieliser has an idea.

    Thank you for being patient.

    Plugin Author Daniel Iser

    (@danieliser)

    @mckennapoole@waltmesser is correct you need to set a specific px value for your width & height. This is because the map JS uses the maps parent containers to determine its size. Because our popups rely on the content to determine there size both end up sized incorrectly.

    <div style="width:400px;height:400px;">[map_shortcode]</div>

    Hope that helps.

    Closing this ticket due to inactivity. If you’re still having an issue, create a new thread, link this one, and we will continue troubleshooting.

    Please take a moment to rate and review our plugin and/or support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pop up trigger is not working’ is closed to new replies.