I copied all contents inside jquery.flexslider.min.js and pasted it into my own flexslider.js file and then I call my file with the code below in functions.php. This was working fine before I updated to the latest Metaslider. What am I missing here?
//Flexslider for Meta Slider
function flex_slider_script() {
$detect = new Mobile_Detect();
if (is_home() && !$detect->isMobile() ) {
wp_enqueue_script( 'meta-flexslider', get_stylesheet_directory_uri() . '/scripts/flexslider.js', array('jquery'), '2.6.4', true );
}}
add_action( 'wp_enqueue_scripts', 'flex_slider_script', 9999);
If I turn on “Print JS” in the options everything works fine, if I turn it off and use my own JS I get no left/right arrows or “dots” and the slider doesn’t slide.