Maps not loading after updating theme

This topic contains 6 replies, has 3 voices, and was last updated by  Tony Bellens 4 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #541981

    Tony Bellens
    Full Member
    Post count: 254

    Hi,

    we just updated our site with a long-awaited theme update (Yootheme Pro 2) and everything seems to be working correctly, except that the maps we added in the builder using shortcodes are not loading. The maps on the places and event pages are ok. If you just scroll down on the home page you will see that the maps for the places, events, and attractions are mot loading.

    https://getdirections.asia

    Thank you,
    Tony

    #541996

    Alex Rollin
    Moderator
    Post count: 27815

    We have identified a conflict with Yootheme that has already been fixed and will be in the next update.

    Please share WP Admin and FTP if you would like us to check your site.

    #542010

    Tony Bellens
    Full Member
    Post count: 254
    This reply has been marked as private.
    #542140

    Kiran
    Moderator
    Post count: 7069

    Hi Tony,

    I checked and there are three google map displayed on page. More than one Google map on one page may conflicts. This could be reason behind map loading issue. On /places/ map is working fine.

    Please try with only one map on the page and let us know how it goes.

    Regards,
    Kiran

    #542231

    Tony Bellens
    Full Member
    Post count: 254

    Hi Kiran, tried it but that doesn’t help. To be honest the site has been like that for over a year without any issues. It’s only after updating the template yesterday that this happened. We kinda need those 3 maps on the front page, thanks.

    #542323

    Kiran
    Moderator
    Post count: 7069

    Hi Tony,

    On YOOtheme JavaScripts are not loaded properly if page is setup with YOOtheme page builder.

    I have added following PHP snippet in your child theme functions.php to fix this.

    
    
    /**
     * Map is not working on page setup with YOOtheme page builder, 
     * because YOOtheme page builder does not register scripts properly.
     */
    function gd_snippet_200424_register_map_js( $display, $params ) {
    	if ( $display && ! wp_script_is( 'geodir-map-widget', 'registered' ) ) {
    		GeoDir_Frontend_Scripts::load_scripts();
    	}
    
    	return $display;
    }
    add_action( 'geodir_check_display_map', 'gd_snippet_200424_register_map_js', 999, 2 );

    Please check and let us know.

    Regards,
    Kiran

    #542449

    Tony Bellens
    Full Member
    Post count: 254

    Thanks a lot, Kiran. Really appreciated.

    Kindest regards,
    Tony

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount