• I’m using GMW in a Woocommerce as a location for a product. In backend I define a location of a product and I insert the shortcode in new tab in tabs.php of Woocommerce so it will display map only when visitor will click “Map” tab on product page.

    However when user clicks the tab the map loads empty. If user clicks full screen and close it the map becomes visible. Hell.. if I resize window the map loads correctly. If I put my shortcode in the description.php file that loads initaly, the map loads just fine.

    I’m using this shortcode:
    <?php echo do_shortcode(‘[gmw_single_location map=”1″ map_width=”100%” map_height=”450px” zoom_level=”15″ hide_info=”1″ info_window=”0″]’); ?>

    It seems that this question is similar but it isn’t working since its ment for WP Job Manager Geolocation: https://geomywp.com/forums/topic/map-wont-show-on-hidden-tab

    Is there any way to fix this?

    https://www.ads-software.com/plugins/geo-my-wp/

  • The topic ‘Empty map in hidden tab’ is closed to new replies.