![]() |
|
Duplicates in slideshow (zpBootstrap) - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Duplicates in slideshow (zpBootstrap) (/thread-13716.html) |
Duplicates in slideshow (zpBootstrap) - kyrd - 2022-04-26 Hello, after upgrading and changing theme I have many images that show 2 and/or 3 times in the slideshow. I don't know if it's something relate to ZP or to the theme zpBootstrap+ZenPage. However, after some tests I've seen that it depends from the image description, where I have some html, i.e.:
I can say that After removing html completely I get correctly the single image & the description appearing in the slideshow. Duplicates in slideshow (zpBootstrap) - kyrd - 2022-04-26 sorry, forgot to add a link where the above happens: Duplicates in slideshow (zpBootstrap) - fretzl - 2022-04-27 I added "zpBootstrap" to the title of this topic so the theme author may spot this easier and can possibly help. Duplicates in slideshow (zpBootstrap) - fretzl - 2022-04-27 It must be something in your theme and/or FancyBox config. Official Zenphoto themes and slideshow display HTML descriptions just fine. Duplicates in slideshow (zpBootstrap) - acrylian - 2022-04-27 I am not familar with the theme and its settings. It seems to be that the fancybox triggers on three image urls (the image link, the thumb and a full image for the fancybox. Probably because of that three times the same instead of only one. Check if there is any theme option for the fancybox to trigger on specific attributes onle. I see a link with Duplicates in slideshow (zpBootstrap) - kyrd - 2022-04-27 Thank you guys, I'll see what I can do. @acrylian - I'll follow the fancybox path that you suggest, but in this case why the fancybox should trigger 3 times only when `` is there? ... as now is too much for my understanding! Duplicates in slideshow (zpBootstrap) - acrylian - 2022-04-27 I have no idea either but there are at least two ``with an image: https://www.zenphoto.org/test/fancyboxissue.jpg.html Although one is not a direct image link… Offhand I don't know fancybox's settings but if nothing is specificed theses "lightbox" all trigger on links to images. Thus my idea. The 3rd would be an `` but why that would trigger I don't know… Hopefully Vincent will have any idea. Duplicates in slideshow (zpBootstrap) - fretzl - 2022-04-28 This works for me:
This only removes the FancyBox trigger (the data-fancybox="image" attribute) in your image description links. Duplicates in slideshow (zpBootstrap) - kyrd - 2022-04-28 Thanks a lot, I'm travelling now but I'll give it a try asap! :-) Duplicates in slideshow (zpBootstrap) - kyrd - 2022-05-04 After much struggling I've solved the duplicates issue - but not yet the unescaped caption + html The problem is caused by an `` tag which wraps both the thumb and the description in inc_print_image_thumb.php. Nothing wrong happens if there is no html in the title/description - as in most of Vincent's website - but when I have another `` tag in the description, of course some nesting problem occurs. That's the original code, lines 28 to 35:
Duplicates in slideshow (zpBootstrap) - acrylian - 2022-05-04 The description certainly allows links and other HTML. Why the fancybox overlay triggers on those links as well is certainly a matter of the theme's configuration for it. Regarding lines lines 28 to 35 of the theme. It is valid in HTML5 to enclose all sorts of HTML with a ``element, but not other links. Which is partly because it obviously creates a problem which link is meant if you click the one within since everything is already a link. Not sure why the theme does it that way. Vincent could probably answer but seems a bit inactive here these days sadly (his own site is even still on ZP 1.5.6). |