Add enqueue_script code into functions.php

This commit is contained in:
Markus Ankenbrand 2017-02-20 23:28:56 +01:00
parent c0e24a4206
commit c615a59e19
2 changed files with 9 additions and 3 deletions

View file

@ -78,7 +78,6 @@
}
}
endwhile;
wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/page-pins-map.js', array('jquery'));
wp_localize_script('page_pins_map', 'page_pins_map', array('places' => $locations, 'traveler' => $traveler));
?>