Google Maps Plugin not working on mobile
-
Hello
Currently I am working on an Website using Lay Theme.
Unfortunately I stumbled upon an issue with the integration of an Google Maps Plug-In via Shortcode. It works just fine on Desktop and Tablet but as soon as the Layout switches to Mobile the Map is not visible. I changed the Mobile break points to check and it clearly seems to have to do with the Mobile theme.You can check out the Problem here: https://www.z20.ch/de/map/
The Plug-In I am using is WP Google Map Plugin version 4.1.5
Maybe anybody has a Solution?
-
same issue with other Plug-In (DSGVO) also with Shortcode-Integration. Would be happy about a solution
-
Hey, probably the issue is he was using both a desktop layout and a custom phone layout on the same page while inserting the same short code.
You could just not use the custom phone layout, or create two different maps with two different shortcodes and insert one in the desktop layout and one in the phone layout. Maybe it has to do with this.
Because the thing is, if you create a desktop layout and a custom phone layout, those are two different markups that exist on the same page. Now, when you insert a shortcode, some plugins don't really output their content twice when you use the same shortcode twice on the same page. This could be an issue with the plugin's JavaScript where the plugin author simply didn't account for this possibility.