D
D
Dmitry2017-07-18 12:34:16
Google Maps
Dmitry, 2017-07-18 12:34:16

How to display Google Maps ACF in Fancybox?

Good afternoon. For IM on Wp + Woo there is such a task. When you click on the link in the product card, the google map should appear in the fancybox modal window. To implement the map, I use the ACF plugin. The map works fine without the modal window. and only this is displayed in the modal window . Maybe someone faced such a problem. How to display google map in modal window. The card initialization script took this one (doc by ACF). Here is the modal window initialization script

$(".js-open-modal-map").fancybox({
  wrapCSS: 'fb-modal-win',
  padding : 0,
  helpers: {
    overlay: {
      locked: false
    }
  }
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew B., 2017-07-27
@BizDirect

As far as I know, Google does not allow unloading maps in a modal window. No matter how many times I tried, it never worked. + there's also an iframe...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question