From f5c2377d6b2ec578db5de865c022c139846e0e70 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Wed, 7 Sep 2016 21:09:58 +0200 Subject: [PATCH] Add code to load googlemaps --- functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions.php b/functions.php index 966831f..ad95153 100644 --- a/functions.php +++ b/functions.php @@ -3,6 +3,13 @@ add_action( 'wp_enqueue_scripts', 'td_theme_styles' ); function td_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); + wp_enqueue_script( + 'google-maps', + '//maps.googleapis.com/maps/api/js?key=AIzaSyDHNT102YHu-TP50F78bPyvf5ia6K6cjU8&callback=initMap', + array(), + '1.0', + true + ); } // Add google API key