Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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,
    Ton

    #903928

    hasn’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.

    #904337

    The 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…

    #904651

    Hi,

    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,
    Ismael

    #904789

    Thank 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.
    #905062

    if 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 work

    function 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.
    #905177

    Yess, 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!

    #905389

    Hi,

    Glad that @Guenni007 helped. Please feel free to open a new thread if you need anything else. :)

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Disable Lightbox Modal just for photo carousel’ is closed to new replies.