diff --git a/page-pins.php b/page-pins.php index 61fbcfe..6141c57 100644 --- a/page-pins.php +++ b/page-pins.php @@ -83,8 +83,8 @@ } } endwhile; - wp_enqueue_style('toggle_switch', get_stylesheet_directory_uri() . '/css/tinytools.toggleswitch.min.css'); - wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/tinytools.toggleswitch.min.js', array('jquery')); + wp_enqueue_style('toggle_switch_style', get_stylesheet_directory_uri() . '/css/tinytools.toggleswitch.min.css'); + wp_enqueue_script('toggle_switch', get_stylesheet_directory_uri() . '/js/tinytools.toggleswitch.min.js', array('jquery')); wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/page-pins-map.js', array('jquery', 'jquery-ui-selectable', 'toggle_switch')); wp_localize_script('page_pins_map', 'page_pins_map', array('places' => $locations, 'traveler' => array_values($traveler))); wp_enqueue_style('page_pins', get_stylesheet_directory_uri() . '/css/page-pins.css');