Page 1 of 1
Photo gallery Carousel block Not working
Posted: Fri Nov 11, 2022 10:09 pm
by joksta42
Since changing to 18 update from 17, my Photo gallery carousel does not work. The script that tells the carousel to change when clicking on an image from the photo gallery does nothing. The script from photo gallery says (#Carousel1" data-slide-to="0) which is normal and has not changed since the update. However, the carousel has changed too, ($('#Carousel2').bootstrapcarousel(0)) which breaks it. There is no Carousel2, and when I change it to 1, it does not help. There is an option to change the carousel to ($('#Carousel1').carousel('goto,1');) But that does not work either. Is the block broken, or is there a better script I should be using?
Re: Photo gallery Carousel block Not working
Posted: Fri Nov 11, 2022 10:19 pm
by Pablo
The bootstrap carousel does not use jQuery anymore, so the code may need to be updated.
For example:
should be
and
Code: Select all
#('#Carousel2').bootstrapcarousel(0)
should be somthing like
Code: Select all
bootstrap.Carousel.getInstance('#Carousel2').to(0)
Re: Photo gallery Carousel block Not working
Posted: Fri Nov 11, 2022 11:53 pm
by joksta42
Thank you, I'll give that a try and post results.
UPDATE: Ok, I'm getting better results. The page, when clicking on the image from the photo gallery, shifts the page down. Now after having made the code changes, it sits still. So, something is correct. Just a bit off still. I implemented the "Photo Gallery - Carousel" because it worked well on 17 without the need to know the code. I do not know how to code, so one can see my dilemma. Thanks for the prompt response.
Re: Photo gallery Carousel block Not working
Posted: Sat Nov 12, 2022 7:19 am
by Pablo
I will try to make the block compatible with bootstrap 5 in one of the next updates.
Note that you can also do this yourself:
- drag the block to the page
- change the code
- saved the changes as block
Update: I have updated the block in the current build (hotfix 2)
Re: Photo gallery Carousel block Not working
Posted: Mon Nov 28, 2022 4:23 pm
by amir2314
Pablo wrote: Sat Nov 12, 2022 7:19 am
I will try to make the block compatible with bootstrap 5 in one of the next updates.
Note that you can also do this yourself:
- drag the block to the page
- change the code
- saved the changes as block
Update: I have updated the block in the current build (hotfix 2)
Color tab carousel Block .
I have this problem It dosnt work With Wwb 18
Re: Photo gallery Carousel block Not working
Posted: Mon Nov 28, 2022 4:31 pm
by Pablo
Is this a standard block that comes with the software?
Re: Photo gallery Carousel block Not working
Posted: Mon Nov 28, 2022 5:09 pm
by amir2314
Pablo wrote: Mon Nov 28, 2022 4:31 pm
Is this a standard block that comes with the software?
Yes i downloaded from extra block on wwb main site
Re: Photo gallery Carousel block Not working
Posted: Mon Nov 28, 2022 6:04 pm
by Pablo
Extra blocks are not part of the software, they are provided as an extra service.