Site logo

Archived topic

Create Child theme with Slick Slider Included

5 replies · Started by Chetan Patil on March 16, 2023

Viewing posts 1–6 of 6

Hi
I am trying to create a child theme in which I want slick slider and jquery enabled.
Please share me the correct code/function to integrate the slick slider
Here is my theme directory https://prnt.sc/dbgqQBMPRp0Q
and https://prnt.sc/0W2mLAZtn-Ah these files I want to be included.

Regards

Hi Fernando.,
Thank you for your reply.
I was asking the correction of my enqueue script.

//add third-party styles and scripts

function uikit_css_stylesheets() {
    wp_enqueue_style('uikit_css', get_stylesheet_directory_uri().'/slick/slick.css', array('cjt_tusoporte_wp'), '1.0');
    wp_enqueue_style('uikit-js', get_stylesheet_directory_uri().'/slick/slick.js', array('jquery'), '1.0');
}
add_action('wp_enqueue_scripts','uikit_css_stylesheets');

It is not getting reflected on my website frontend.

Regards

Hi,

Thank you for your response. It worked. Thank you.
:)

You're welcome, Chetan! :)

This archived topic is closed to new replies.