Hello @Support-Luis
I hope you are doing fine.
I am having the same error as @marco I hope you can help me out on this matter.
Here is the read only link:
https://preview.webflow.com/preview/cdei-es?utm_medium=preview_link&utm_source=designer&utm_content=cdei-es&preview=a55523ff47c431865ea29a0055c84e36&pageId=64c229679390fd8ed0131c53&itemId=64c229679390fd8ed0131f92&workflow=preview
I am using a slider to show the speakers with a cms collection. The slider works fine.
The problem I currently have is that the Smart Lightbox is not working properly.
- I have applied the “trigger-open” to the button that says “Ver detalles”.
- I have applied the “lightbox” to the div that has the class “teachers_modal_out”.
- I have applied the “trigger-close” to the image that has the class “modal__close-button”.
Also, I put the code that you shared before:
<!-- [Attributes by Finsweet] Smart Lightbox -->
<script
defer
fs-attributes-preventload="true"
src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-smartlightbox@1/smartlightbox.js"
></script>
And the other one:
<script>
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
'cmsfilter',
(filterInstances) => {
console.log('cmsfilter Successfully loaded!');
window.fsAttributes.smartlightbox.init();
const [filterInstance] = filterInstances;
filterInstance.listInstance.on('renderitems', (renderedItems) => {
window.fsAttributes.smartlightbox.init();
});
window.fsAttributes.push([
'smartlightbox',
(lightboxInstances) => {
console.log('ligthbox initiated');
const swiper = new Swiper('.swiper', {
/*mousewheel: {invert: true,},*/
// Optional parameters
direction: 'horizontal',
slidesPerView: 3.5,
loop: false,
spaceBetween: 24,
grabCursor: true,
navigation: {
nextEl: '.swiper-nav.next',
prevEl: '.swiper-nav.prev',
},
breakpoints: {
1: {
slidesPerView: 1.1,
spaceBetween: 16,
},
650: {
slidesPerView: 2.1,
spaceBetween: 16,
},
991: {
slidesPerView: 3.5,
spaceBetween: 24,
},
},
});
},
]);
},
]);
</script>
after all, I have not been able to get the modal to override all the elements. The modal should show above all elements and not inside the tab of the speaker.
I hope you can help me find a solution for this.
Thank you so much for your time.
Kind regards,