Lightbox-Bilder größer als Original
-
Re: Lightbox
Hallo, wie schaut es mit der Weiterentwicklung der Lighbox bezüglich der o.g. Funktion aus? Oder welche andere Möglichkeit gibt es, dass kleine Bilder in der Lightbox nicht vergrößert dargestellt werden?
VG
-
-
Hello Marius,
I am trying to do this with giving an image a class and write a custom css like:
.newclass .lightbox-image-holder img {
height: initial !important;
width: initial !important;
}Well, it does not work. ^^
Any ideas to solve this by writing custom css?
Best.
-
Dear @Layer
try to add this to your CUSTOM CSS code:
#lightbox-inner .lazyloaded { width: initial !important; height: initial !important; }
Best!
Marius
-
Hello Marius,
this works. But unfortunately the function "Lightbox Addon > Space Around Image" does not work anymore. The height of big pictures is then the browser hight. If you have an idea to combine that let me know.
Best.
-
Dear @Layer
you could try to use max-height and max-width.Hope that gets you in the right direction.
Best!
Marius
-
Hello Marius,
nope, does not work.
Best.
-
Dear @Layer
have a look here:#lightbox-inner .lazyloaded { width: initial !important; height: initial !important; max-height: 100vh; max-width: 100vw; }
Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it