Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript WORDPRESS: Added wp_head() to header and now my jquery scripts do not work Re: WORDPRESS: Added wp_head() to header and now my jquery scripts do not work

#141204
asiek
Participant

@eristic So for flexslider I’d use//

function my_scripts_method() {
wp_enqueue_script(
'flexslider',
get_template_directory_uri() . '/inc/js/jquery.flexslider.js',
array( 'jquery' )
);
}

add_action( 'wp_enqueue_scripts', 'my_scripts_method' );

?

This is all new to me.

Thanks for your time and help by the way.