Hi Kathryn,
It goes…very good, it works.
Thank you. And your colleague Frank! This was really helpful!
I think more people may want to use this.
I was very close to the solution and I see what I did wrong. I hope I can use this next time if I need to. For PHP and JS scripting I am an ‘dyslexian’.
Because I have written one blog yet before publishing my website https://www.jeroengotz.nl
I was thinking of doing this, because the slider is only visible when two posts are published:
function my_scripts() {
if ( sketch_has_featured_posts ( 1 ) ) {
wp_dequeue_script( 'sketch-script' );
wp_enqueue_script( 'sketch-child', get_stylesheet_directory_uri() . '/js/my_sketch.js', array( 'jquery', 'sketch-flexslider' ), '20140530', true );
}
}
add_action( 'wp_enqueue_scripts', 'my_scripts' );
Simply changing ‘2’ in to ‘1’ did not the job. So I need to do the same thing I guess?
Ok, It is more easy to write another post! But I was wondering how to do this.
And thank your Frank for me! Very nice!