Skip to main content
ORA
Menu
About
Stories
Articles
Research
Podcasts
Community
Donate
Erin McAuley
Program Coordinator
Learn more
Facebook
Twitter
Linkdine
Stories BY THIS CREATOR
No stories yet. Check back soon!
window.addEventListener('elementor/frontend/init', () => { elementorFrontend.hooks.addAction('frontend/element_ready/global', function () { const items = document.querySelectorAll('.swiper.elementor-loop-container .swiper-slide:not(.swiper-slide-duplicate)'); if (items.length <= 2) { document.querySelectorAll('.swiper.elementor-loop-container').forEach((carousel) => { if (carousel.swiper) { const swiper = carousel.swiper; // Destroy the current looped Swiper instance swiper.destroy(true, true); // Re-initialize without loop new Swiper(carousel, { loop: false, slidesPerView: swiper.params.slidesPerView || 1, spaceBetween: swiper.params.spaceBetween || 10, navigation: swiper.params.navigation || {}, pagination: swiper.params.pagination || {}, breakpoints: swiper.params.breakpoints || {} }); } }); } }); });