Add code to load googlemaps

This commit is contained in:
Markus Ankenbrand 2016-09-07 21:09:58 +02:00
parent 5480855ec0
commit f5c2377d6b

View file

@ -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