Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #873624

    Hi i purchased enfold theme (4.1.2) and now i’m using a child version.
    I can’t show goggle maps with layout editor editor in contact page http://ercolanicoperture.it/contatti/

    Google api key is ok .
    I also added this code in funtions.php as you suggested in a post, But still not works

    function ava_googlemaps_apikey() {
    $prefix = is_ssl() ? “https” : “http”;
    wp_deregister_script(‘avia-google-maps-api’);
    wp_register_script( ‘avia-google-maps-api’, $prefix.’://maps.google.com/maps/api/js?key=AIzaSyAidX34J-pkIHmOUFdVrt05MpzDHz-VZUk’, array(‘jquery’), ‘3’, true);
    wp_enqueue_script(‘avia-google-maps-api’);
    }
    add_action(‘init’, ‘ava_googlemaps_apikey’);

    #873803

    Hey BernardoBussi,

    Please remove this code from functions.php and put the API key in the theme options.
    Credentials did not work for me. Could you please update the credentials.

    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.