Conflict between jQuery bundled with WordPress and theme

Hey I have a problem with a jQuery conflict. The WordPress admin jQuery and my theme’s jQuery conflict with each other.

function sg_dex_js(){

wp_enqueue_script( ‘jquery’ );
wp_enqueue_script( ‘script-wow’, get_template_directory_uri() . ‘/js/wow.min.js’, array(‘jquery’) );
wp_enqueue_script( ‘script-slick’, get_template_directory_uri() . ‘/js/slick.js’, array(‘jquery’));
wp_enqueue_script( ‘script-slick-min’, get_template_directory_uri() . ‘/js/slick-responsive.js’, array(‘jquery’));
wp_enqueue_script( ‘script-custom’, get_template_directory_uri() . ‘/js/custom.js’, array(‘jquery’) );
wp_enqueue_script( ‘script-mobile’, get_template_directory_uri() . ‘/js/mobile-menu.js’, array(‘jquery’));
wp_enqueue_script( ‘script-charming’, get_template_directory_uri() . ‘/js/charming.min.js’, array(‘jquery’));
wp_enqueue_script( ‘script-amine’, get_template_directory_uri() . ‘/js/anime.min.js’, array(‘jquery’));
wp_enqueue_script( ‘script-wordfx’, get_template_directory_uri() . ‘/js/wordFx.js’, array(‘jquery’) );
wp_enqueue_script( ‘script-particale’, get_template_directory_uri() .’/js/particles.js’,array(‘jquery’));
wp_enqueue_script( ‘script-app’, get_template_directory_uri() . ‘/js/app.js’, array(‘jquery’));
//wp_enqueue_script( ‘tabberjs’, get_template_directory_uri().’/javascripts/tabber.js’, array(‘jquery’), 1.0, true);
// wp_enqueue_script( ‘superfishjs’, get_template_directory_uri().’/javascripts/superfish.js’, array(‘jquery’), 1.0, true);

}
add_action( ‘wp_enqueue_scripts’, ‘sg_dex_js’ );

Read more here:: Conflict between jQuery bundled with WordPress and theme

Leave a Reply

Your email address will not be published. Required fields are marked *