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
July 1, 2013 at 6:44 pm
#141204
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.