is it possible to add navigation like in the carousel gallery layout to the content carousel as well?
I read https://owlcarousel2.github.io/OwlCarou ... tions.html and tried adding
Code
data-carousel-nav=true
X3 Photo Gallery Support Forums
<script>$(".owl-carousel").owlCarousel();</script>
My original idea was to simply place it at the bottom of your page content, but I see now that would cause an error on initial load as it would trigger before jQuery is loaded. Therefore, you should place it in page settings > Page > Advanced > Page Javascript (without the <script> tag).metallissimus wrote:I think I'm just shy of making it work but there's a basic question I can't answer: Where do I put the setup code? (https://owlcarousel2.github.io/OwlCarou ... basic.html) I tried Settings > Custom > Custom Javascript but it didn't do anything, I have no idea where else it should go.
The above would solve that, as it triggers javascript on a per-page basis. Javascript added globally will only trigger on initial (first) page load.metallissimus wrote:And somehow the script isn't triggered on initial page load, only when I navigate to a folder and back again.
I understand that was frustrating. Keep in mind, that style is used for the X3 gallery carousel, and I can't anticipate users piggy-backing the OwlCarousel with their own implementations, especially considering there already exists a "content carousel" option.metallissimus wrote:BTW: You have the following in the skin CSS which was really irritating at first because there was simply nothing showing up.