A
A
Ayusha Dorzhiev2020-04-18 20:51:54
WordPress
Ayusha Dorzhiev, 2020-04-18 20:51:54

Slick slider does not work on wp how to connect it correctly?

Hello, please tell me about this issue:
There is a self-written site, I pulled it on WP. A slick slider was installed on a self-written site.
The entire site works on WP, but slick does not ((((
I connected via hooks. What did I do wrong? Is there a conflict somewhere?

function helpfinzdorov_scripts() {
  
  wp_enqueue_style( 'helpfinzdorov-style', get_stylesheet_uri());
  wp_enqueue_style( 'helpfinzdorov-main-style', get_template_directory_uri() . '/assets/style/style.css', array(), _S_VERSION );
  wp_enqueue_style( 'helpfinzdorov-jquery.fancybox.min', get_template_directory_uri() . '/assets/style/jquery.fancybox.min.css', array(), _S_VERSION );
    wp_enqueue_style( 'helpfinzdorov-slick-theme', get_template_directory_uri() . '/slick/slick-theme.css', array(), _S_VERSION );
  wp_enqueue_style( 'helpfinzdorov-main-slick', get_template_directory_uri() . '/slick/slic.css', array(), _S_VERSION );
  
  wp_enqueue_script( 'jQuery');
  wp_enqueue_script( 'helpfinzdorov-js', get_template_directory_uri() . '/assets/script/js.js', array(),  _S_VERSION, true );
  wp_enqueue_script( 'helpfinzdorov-flexbox', get_template_directory_uri() . '/slick/flexbox.js', array(),  _S_VERSION, true );
  wp_enqueue_script( 'helpfinzdorov-slick.min', get_template_directory_uri() . '/slick/slick.min.js', array(), _S_VERSION, true );
  wp_enqueue_script( 'helpfinzdorov-jquery.fancybox.min', get_template_directory_uri() . '/assets/script/jquery.fancybox.min.js', array(),  _S_VERSION, true );
  wp_enqueue_script( 'helpfinzdorov-jquery.maskedinput.min', get_template_directory_uri() . '/assets/script/jquery.maskedinput.min.js', array(), _S_VERSION, true );
    
}
add_action( 'wp_enqueue_scripts', 'helpfinzdorov_scripts' );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2020-04-18
@wppanda5

wp_enqueue_script( 'jQuery');- no - yes
wp_enqueue_script( 'jquery');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question