Hello,
I noticed a weird behavior of owl slider concerning the “first” and “last” classes. I am using the [etheme_products] shortcode to display products by ID. My goal is to border the first slide. I was happy to find that the first slide has it’s own class addition called “first” and added the border successfully via my childtheme’s style.css:
.slide-item .first {
border: 1px solid #888 !important;
}
But the border was not only added to the first slide, but also to the 5th. And the 4th item has the class “last”.
I noticed this behavior not only on my page but also on your demo site in related products section: preview.themeforest.net/item/royal-multipurpose-wordpress-theme/full_screen_preview/8611976
This means that this has nothing to do with my childtheme or any plugins (so there is no need to give you my credentials), its Royal theme that says somewhere in it’s code that the first item gets the class “first” and every 4th item gets the class “last”, even if there are more than 4 items in the slider.
Could you please tell me what to do in order to style only the first item in the owl slider different from the other items?
Many thanks in advance and best wishes!