Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Kerry

    (@bluenotes)

    Hi Dragan90,

    The slider adds an inline js script that requires jquery. In your theme’s case, jquery is being loaded in the footer which is after the testimonial’s inline script. Try moving your jquery to the header instead.

    Thread Starter Dragan90

    (@dragan90)

    Hi, Thanks for response.

    I added jquery.js and testimonial flexslider.min-v2.2.0.js to the header but nothing changed.

    Plugin Author Kerry

    (@bluenotes)

    According to the source, you’re enqueuing jquery twice. Only enqueue one of them and have it in the head. So remove the one in the footer.

    Plugin Author Kerry

    (@bluenotes)

    Oh and don’t move flexslider.min-v2.2.0.js. that’s fine where it was.

    Thread Starter Dragan90

    (@dragan90)

    How to remove it from footer, scripts are loaded in footer automatically, I didn’t do that.

    Plugin Author Kerry

    (@bluenotes)

    That would be question for your theme developer. It would either be in the functions.php file or somewhere else where they are telling jquery to be enqueued at.

    Thread Starter Dragan90

    (@dragan90)

    function arriter_scripts() {
    	wp_enqueue_style( 'arriter-style', get_stylesheet_uri() );
    
    	wp_enqueue_script( 'arriter-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
    
    	wp_enqueue_script( 'arriter-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
    
    	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    		wp_enqueue_script( 'comment-reply' );
    	}
    }
    add_action( 'wp_enqueue_scripts', 'arriter_scripts' );

    I found this in function.php but I can’t find where jquery.js is loaded and also where to set to load all in head

    Thread Starter Dragan90

    (@dragan90)

    Theme is blank theme from underscores.me which I edited

    Plugin Author Kerry

    (@bluenotes)

    Ok then add this above the first wp_enqueue_style in the arriter_scripts function

    	// Jquery
    	wp_enqueue_script('jquery');
    

    If after, you still have jquery in the footer, or 2 instances of it, then look in footer.php, or another plugin that may also be adding it.

    Thread Starter Dragan90

    (@dragan90)

    It worked! Thank you!!!!

    Plugin Author Kerry

    (@bluenotes)

    Awesome. Glad to hear it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Slider don't show in theme’ is closed to new replies.