Libbna / BLOG_SITE

Simple blog site with CRUD operations using PHP and MYSQL
2 stars 4 forks source link

Not able to implement OWL or SLICK carousel in project #14

Closed Libbna closed 3 years ago

Libbna commented 3 years ago

I'm trying to implement the carousel using OWL or SLICK plugins but failed to do it. The contents are displaying statically, "screenshot attached" image

Also when I am including the script it's showing me an error.

image

The problem is with OWL and Slick only, the bootstrap carousel is working absolutely fine.

Libbna commented 3 years ago

The issue is resolved. You need to download the required owl's JS and CSS file and include the in a proper manner. At the top inside you have to include all the required OWL CSS files.

<link rel="stylesheet" href="../assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="../assets/css/owl.theme.default.min.css">
<link rel="stylesheet" href="../assets/css/owl.theme.green.min.css">

and before the closing of you have to include the OWL JS link. And above the JQuery code to initialize the carousel. image

Libbna commented 3 years ago

Attaching the owlCarousel zip file from where you can easily copy and paste the CSS and JS files into your project files. OwlCarousel2-2.3.4 (1).zip