This tutorial shows how to manage Owl Carousel in JS Animated templates:
Inspect carousel using Inspector in Chrome or Firebug in Firefox browser. We can see that Owl carousel is being used in this section:
Open the appropriate index file in your editor. Search appropriate part of code using search function of your editor:
In order to add more items, you should copy the code of original item:
Paste the code. Be sure to keep coding structure. Change text and image:
Save changes, upload updated file to your server. Refresh page. We have added a new item:
In order to change carousel options, data attribute should be used. You can check how attributes are defined on the screenshot below:
Carousel autoplay configuration. In order to enable slider autoplay you should use data-autoplay data attribute:
In order to display "Previous"/"Next" navigation in Owl Carousel, you should use corresponding
data-nav="true"data attribute for carousel. Such attribute is defined in our carousel, please check previous screenshot.
You can disable navigation by specifying false instead of true.
Owl carousel allows to display one or a couple of items at once. In order to manage carousel items display, you should use the corresponding data attribute data-items and data-*-items. Please check template documentation for more detailed information. We have added data-lg-items="1" and data-md-items="1" attributes:
Now two items show up at the same time
Let’s check how another Owl carousel works. We have inspected carousel using Inspector in Chrome. Such content is provided by owl carousel as well. Navigation does not show up, images have a lightbox:
Locate appropriate part of code. Attribute data-stage-padding defines carousel scene padding. It can be applied to devices with different resolutions. Attribute data-lightbox defines that gallery will be used for the lightbox:
The following code defines animation for particular item:
You can remove lightbox from particular image. Just remove reference to lightbox image. Remove the following code:
Please check template documentation for more detailed information (Extensions – Owl Carousel).
Feel free to check the detailed video tutorial below: