Default Location – set address on map not working?

This topic contains 9 replies, has 3 voices, and was last updated by  Stiofan O’Connor 9 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #6427

    purpleedge
    Expired Member
    Post count: 539

    Clean install of GD 1.1.5 on local host, no other GD plugins yet, the Default Location “Set Address on Map” button doesn’t seem to do anything, do we have to enter the lat and lon manually?

    OK, it works on a clean install of WP, BUT if I use the Enfold theme it doesn’t work!

    I’ll add the Enfold code to my functions.php file and see if that helps?

    #6428

    Vikas
    Full Member
    Post count: 1128

    do u see any JS error in error console?

    #6429

    purpleedge
    Expired Member
    Post count: 539

    Hi Vikas,

    See attached, and above – might be a conflict with Enfold theme.

    I get this error when I open the set default location page, and I don’t get the location marker pin!

    #6431

    purpleedge
    Expired Member
    Post count: 539

    I’ll disable Google Maps in Enfold – if I can figure out how 😉

    #6432

    purpleedge
    Expired Member
    Post count: 539

    I’ve added the Enfold compatibility code to my funtions.php file, didn’t help.

    Any idea how to disable Google Maps API in the Enfold theme??

    #6435

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Google API’s on localhost can be funny, i would not assume they will work.

    Stiofan

    #6440

    purpleedge
    Expired Member
    Post count: 539

    If I comment out the two calls to …

    wp_register_script( ‘avia-google-maps-api’, $prefix.’://maps.google.com/maps/api/js?sensor=false’, array(‘jquery’), ‘3’, true);

    …in the Enfold theme, the marker re-appears and the button works.

    But I’d rather not do that and I tried to call…

    wp_deregister_script( ‘avia-google-maps-api’ );

    …in my functions.php but it didn’t work to stop the theme from loading the Google APIs. Any suggestions?

    TIA

    #6442

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Please add this to your enfold comparability code

    
    
    add_filter( 'avf_load_google_map_api', 'gd_enfold_remove_maps_api', 10, 1 );
    function gd_enfold_remove_maps_api($call){
    return false;	
    }
    #6478

    purpleedge
    Expired Member
    Post count: 539

    Thanks Stiofan, I added it to the end of your Enfold functions.php code and it fixed this issue!

    #6479

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    🙂

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

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

Open Support Ticket