Add enqueue_script code into functions.php
This commit is contained in:
parent
c0e24a4206
commit
c615a59e19
2 changed files with 9 additions and 3 deletions
|
|
@ -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));
|
||||
?>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue