Enqueue script if not page template
You need to pass it as a function, or you already have but didn’t copy the whole code? If you did not do it, it should look something like this function page_template_not_enqueue() { if ( !is_page_template( ‘page-full-width.php’ ) ) { wp_enqueue_script( ‘flickity-js’, get_template_directory_uri() . ‘/js/flickity.js’, array(), filemtime( get_stylesheet_directory() . ‘/js/flickity.js’ ), true ); } } … Read more