Add code to load googlemaps
This commit is contained in:
parent
5480855ec0
commit
f5c2377d6b
1 changed files with 7 additions and 0 deletions
|
|
@ -3,6 +3,13 @@
|
||||||
add_action( 'wp_enqueue_scripts', 'td_theme_styles' );
|
add_action( 'wp_enqueue_scripts', 'td_theme_styles' );
|
||||||
function td_theme_styles() {
|
function td_theme_styles() {
|
||||||
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
|
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
|
// Add google API key
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue