Thank you for your time, the JS is working the only problem is that I did exactly as you wrote but first the slider only counts 2 slides (1 for image and 1 for description) because somehow all the images are being displayed in 1 slide only instead 1 slide for each image and second the description is only showing on the first slide and when I click the slide works but the next slide is just empty. I just don’t understand what am I doing wrong. (please see screenshot attached). I really appreciate your help since I am really stuck here! Thank you so much!
I changed the code a little bit and now everything is as it should when I inspect it but even though the slider counts 5 slides the content is being shown on the first slide. (please see screenshot, black image should be slide 1, blue image should be slide 2, etc) but the content doesn’t stay inside the slide, it just goes down like a scrolling page.
Your question just solved my problem, I forgot to include the CSS link from the swiper! thank youuu and thank you for all your help your first answer also helped me to structure the code beteer!! THANK YOU
I just have one more question, is it possible to only call a specific block like only the gallery? at the moment I am looking through all the blocks even though I only need the gallery and I just don’t want in the future if my client adds another block my mistake that this will show on the website! thank you sooo much!!
I am sorry, I bumped into another problem! On this slider I need the possibility of adding 2 images side by side per slide or just 1 image per slide. My idea was to use a select field for images left and images right and say if these select field exists the images should be shown side by side otherwise is just 1 image per slide. at the moment I still get only 1 image per slide, I know this code is not correct and I have tried a lot of other things but I can’t seem figure it out the best way to achieve this. do you have any idea of should I achieve this? thank you so much, I appreciate every input. here’s my blocks gallery php:
I already tried to change it but keep getting only 1 image per slide. the idea would be the first if to put 2 images side by side (left & right classes) and else only 1 image per slide. but at the moment is only 1 image per slidie