-
AuthorPosts
-
September 1, 2022 at 12:58 pm #1363475
Hi,
I think it is intended to open the lightbox on tap/click on an image.
Unfortunately it doesn’t – only when pressing the [<=>] Button.Greets Tobias
September 3, 2022 at 9:12 pm #1363761Hey Tobias,
Thank you for your patience and for the login, but this is not an admin login, please update the login so we can see your theme options.Best regards,
MikeSeptember 5, 2022 at 10:58 am #1363892This reply has been marked as private.September 5, 2022 at 4:26 pm #1363946try this in quick css
(if you only like to have that on some horizontal galleries – then you had to give to that alb element a custom-class – and adjust the selectors.)the trick is to have on the active item the anchor at whole container width and height. So the active click region will be the full image. The before content in this case will be not seen.
.av-horizontal-gallery { overflow: visible !important } #top .av-horizontal-gallery-wrap.av-active-gal-item { box-shadow: 0px 0px 10px #aaa } #top .av-horizontal-gallery-wrap.av-active-gal-item .av-horizontal-gallery-link { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 100%; transform: scale(1); } .av-horizontal-gallery-wrap.av-active-gal-item:hover .av-horizontal-gallery-link { opacity: 0; transition: none !important; } #top .av-horizontal-gallery-wrap.av-active-gal-item .av-horizontal-gallery-link:before { content: " "; position: relative; top: 0; left: 0; display: block; height: 100%; width: 100%; }
see on: https://enfold.webers-webdesign.de/smudgedesign/#horizontal-gallery
i haven’t tested yet if it works with touch on mobile devices …
September 5, 2022 at 6:42 pm #1363963Sometimes you can’t see the forest for the trees. I also tried scripting it through jQuery first and then generating a custom Magnific Popup for it.
It was quite easy due to the class (av-active-gal-item) located only at the highlighted element, to open the lightbox using the whole area of the image. Since the corresponding button (icon) was in the pseudo-container, it is easy to hide it in this case.September 7, 2022 at 1:00 pm #1364195Hi,
@tobiastoifl thank you for the login, your horizontal gallery is performing correctly, the click is to advance to the next slide, if you want to open the active slide in a lightbox then
@Guenni007 code above works, thank you @Guenni007, please try this.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.