From c5d61afca0a162f9636f872a5025fb17b57a2dfb Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Mon, 20 Feb 2017 23:09:05 +0100 Subject: [PATCH] Use stylesheet_directory_uri to use child theme instead of parent --- page-pins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page-pins.php b/page-pins.php index 89d0ccc..9a63645 100644 --- a/page-pins.php +++ b/page-pins.php @@ -78,7 +78,7 @@ } } endwhile; - wp_enqueue_script('page_pins_map', get_template_directory_uri() . '/js/page-pins-map.js', array('jquery')); + 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)); ?>