-
AuthorPosts
-
September 23, 2014 at 3:11 am #323425
Hello,
I recently installed the Responsive Lightbox plugin and tried to switch default PrettyPhoto lightbox (which as a photographer I don’t really consider that pretty) to something more swipeable and fullscreen. Anyhow, as with a previous theme I had used I encountered a ‘double lightbox’ problem: If I open a photo, it does open the new SwipeBox lightbox in the front, but it also opens PrettyPhoto (can be seen if you close the lightbox via x button or on mobile – pressing Esc closes both the boxes).
I have edited the avia.js according to suggestions on previous topics (deleting the part about “activates PrettyPhoto”), but if I do that, instead of the newly installed lightbox, the attachment itself opens (just a plain *.jpg file).
Do you have any suggestions?
See double lightbox e.g. here: http://maxniemann.de/fotograf-leipzig/bewerbungsfotos-businessportraits-leipzig/
Best regards and thank you for your help,
Max NiemannSeptember 23, 2014 at 6:23 am #323515Hey Max Niemann!
Please update the theme to the latest version (2.9.2). Once you done that you’ll be able to disable the Enfold lightbox script from the theme options.
Best regards,
JosueSeptember 23, 2014 at 7:35 pm #323874Hey Josue,
Thank you for the quick response. I have updated the theme and, according to your suggestion, unchecked the Enfolg lightbox, however it now again points to the jpg files only. (Feel free to check the link provided in the post.) The SwipeBox does work just fine if the default lightbox is activated, too. So basically at the moment I can choose between using two lightboxes or none at all. ;-)
Any other ideas?
Best regards,
Max NiemannSeptember 23, 2014 at 10:03 pm #323933Hey Max!
The problem is that SwipeBox doesn’t apply lightbox automatically to the images (something Enfold does). It’s worth mentioning that we dropped PrettyPhoto and changed it for a better and nicer lightbox script, Magnific Popup.
Regards,
JosueSeptember 23, 2014 at 11:27 pm #323957Hey Josue,
Well, alright … I thought the plugin I used did that (it could at least be selected to apply the lightbox to gallery images), but apparently I have to settle with Magnific Popup. Which is, though, indeed quite a lot prettier than the default one before.
Best regards,
Max NiemannP.S.: Can the lightbox be customized/modified in some way?
September 24, 2014 at 12:45 am #323982Hey Max!
Yes, the style and colors can be adjusted.
Cheers!
JosueSeptember 25, 2014 at 2:25 am #324708Hey Josue,
Stupid question, but I don’t see options in the Enfold tab… Where can those adjustments be made?
Best regards,
Max NiemannSeptember 25, 2014 at 2:29 am #324711Hi Max!
There are no options for that because it’s a very specific matter, you’d need apply some CSS code. What do you want to change exactly? i can provide you with the precise code to put in Quick CSS (General Styling).
Best regards,
JosueSeptember 26, 2014 at 2:18 pm #325587Hey Josue,
That’d be great! For starters, I’d like the background blacked out a little more than it is by default. I think there is a black layer at about 75% opacity, 100% would be nice (or a script where I can just try to adjust it in a way that suits the design).
The rest would probably be a little too specific.
Best regards,
MaxSeptember 27, 2014 at 1:04 am #325807Hey Max!
Add this code to the Quick CSS:
.mfp-bg.avia-popup.mfp-zoom-in.mfp-ready { opacity: 1; }
Cheers!
JosueOctober 19, 2014 at 12:05 am #337745Hello again,
Thanks for providing the code! Worked a charm. I’ve got another one: I’d like for the lightbox to not display the names and index numbers of the photos. How can I achieve that?
Best regards
October 19, 2014 at 12:08 am #337746Hi Max!
Add this;
.mfp-bottom-bar { display: none; }
Cheers!
JosueOctober 19, 2014 at 12:11 am #337747Thanks! That was quick.
-Max
October 19, 2014 at 12:29 am #337749You are welcome Max, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.