-
AuthorPosts
-
November 24, 2016 at 4:47 pm #716491
Hi, when I zoom a gallery image with the lightbox function the page scrollbar is still shown, which looks bad. Does the lightbox script have a callback function where I can set the html tag to overflow: hidden or something like that? If so, can it be done in my child theme?
Any ideas?
November 28, 2016 at 11:56 am #717685Hey convecto,
unfortunately this is a default browser function and can’t be easily swtiched off as far as I know.
Best regards,
AndyNovember 28, 2016 at 12:19 pm #717695Sorry, but this is not true. Maybe the script doesn’t cover this but I need to know where this script is located so that I can fix it by myself.
cheers, Julian
November 28, 2016 at 12:24 pm #717702Hi!
Andy is correct on that.
To modify all the rest, you would need to play around with the Jquery effect and not just CSS.Let us know if we can help with something else regarding our theme.
Cheers!
BasilisNovember 28, 2016 at 4:00 pm #717837Hi Basilis,
I know that but where can I find the lightbox script and is it possible to overwrite it in my child theme? That was my initial question.
Thanks again.
cheers, Julian
November 29, 2016 at 2:59 pm #718249Hi,
you could customize lightbox settings by changing js->avia.js file. However, we can’t help you with this kind of customization. Hope you can achieve what you need.
You could also deactivate Enfold’s lightbox in the theme settings and use another lightbox with the functions you wish.Best regards,
AndyNovember 29, 2016 at 6:47 pm #718437OK, I checked and actually it’s just setting avia.js line 940 from false to true:
fixedContentPos: true, // allows scrolling when lightbox is open but also removes any jumping because of scrollbar removal
That’s it!
Sorry, but this was no good support for such a simple task.
cheers, Julian
November 30, 2016 at 1:44 pm #718744Hi,
glad you could find a solution for it by yourself. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy -
AuthorPosts
- The topic ‘Scrollbar at gallery lightbox’ is closed to new replies.
