-
AuthorPosts
-
January 28, 2018 at 5:25 pm #903904
Hi,
Is it possible to disable the enfold Lightbox modal for just the Photo Carousel we use on our site? See link in private content.
Now two lightboxes are opened when i click on a picture.I don’t want to disable the Lightbox per page because we have a lot of this Photo Carousels on our site and i would still like to use the modal lightbox for other pictures on our site.
Thanks in advance,
TonJanuary 28, 2018 at 8:30 pm #903928hasn’t the horrizontal Gallery an option to deactivate the lightbox? (image linking). #
– but because you say that you have two lightboxes there might be a conflict with another lightbox plugin you have installed.January 29, 2018 at 6:16 pm #904337The horizontal gallery has indeed an option to deactivate the lightbox, but it has to be done with every photo in the Horizontal Galery. We have a lot of Gallery’s with a lot of pictures, So that is al lot of work :-)
IT would be great If there is a Quick CSS code to put in Enfold to accomplish this…
January 30, 2018 at 7:32 am #904651Hi,
Is there an option in the gallery where you can add a unique class attribute to the main container? If that option is available, use “nolightbox” as class attribute.
Best regards,
IsmaelJanuary 30, 2018 at 12:14 pm #904789Thank you,
I found the code <div class=”wonderplugincarousel” as unique attribute.
That means that i can put this in QuickCSS or do i have to do it another way?
div.wonderplugincarousel { nolightbox; }That code doesn’t seems to work. Can be a caching problem ofcourse.
- This reply was modified 6 years, 10 months ago by rentadabo.
January 30, 2018 at 6:58 pm #905062if you are working on a child-theme you can try to add that class via functions.php of the child-theme:
i can not see the private Content so try if this will workfunction add_class_to_wonderplugincarousel() { ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('div.wonderplugincarousel').addClass('nolightbox'); }); </script> <?php } add_action('wp_footer', 'add_class_to_wonderplugincarousel');
- This reply was modified 6 years, 9 months ago by Guenni007.
January 30, 2018 at 10:02 pm #905177Yess, thanks Guenni,
At first it didn’t work, but i discovered that nolightbox is case sensitive.
So noLightbox did the trick.Didn’t know it was possible this way.
Thanks a lot!January 31, 2018 at 7:08 am #905389Hi,
Glad that @Guenni007 helped. Please feel free to open a new thread if you need anything else. :)
Best regards,
Ismael -
AuthorPosts
- The topic ‘Disable Lightbox Modal just for photo carousel’ is closed to new replies.