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

    Hi!

    It works. There was an another problem with Google Maps!
    You can close this ticket!
    Thanks :-)

    I generate an API Key for Google Maps.
    And put this Code-Snippet into the functions.php

    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=AIzaSyBOhipDPxLWk4OEwU7s9527X66xxxxx', array('jquery'), '3', true);
    	wp_enqueue_script('avia-google-maps-api');
    }
    add_action('init', 'ava_googlemaps_apikey');

    It seems, that there isn*t any java scirpt problem anymore. But the site dont show Google Maps (in the footer).

    Do you have any Ideas?

    #682456

    Hi internetwarriors,

    Great, glad you got it working :-)

    Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Google API Key – functions.php’ is closed to new replies.