Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1440379

    Hello,
    first of all: congratulations on your theme. I have already bought it several times for different installations. Now I have a problem: I need the modal box for the cookie banner. But I had to disable it because I have integrated the FOOGALLERY plugin – and both lightboxes (Enfold & Foo) are called one after the other in the image show.
    There is a snippet here in the forum for another gallery plugin to disable the lightbox. Can you also provide this for the FooGallery?
    Thank you!
    Ronald

    • This topic was modified 7 months, 1 week ago by R_Menn.
    #1440386

    Hey R_Menn,
    Thanks for your question, we don’t have any experience with your plugin and we don’t have a way to limit the Enfold lightbox to only the modal box, you can see in our documentation that typically adding the custom class noLightbox should disable the Enfold lightbox, you should try this on a couple of your elements and see if this works for you. Unfortunately some lightboxes use this same class in their plugins so it may disable both lightboxes, you will need to test.
    If this does work for you we maybe able to help add this class to all of your images with javascript so you don’t need to manually add it.
    If this doesn’t help, then perhaps using a different cookie bar would be an easy solution.

    Best regards,
    Mike

    #1440390

    Hi Mike,
    thank you for the quick answer. Maybe I’ve found another solution with the help of this forum:

    I added this to functions.php

    function add_class_to_foogallerylightbox() {
    ?>
    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(‘div.foogallery’).addClass(‘noLightbox’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_class_to_foogallerylightbox’);

    Seems to work – what do you think?

    #1440417

    Hi,
    Glad that you found the solution, it adds the class noLightbox to your items the foogallery lightbox works on, as I tried to explain above, I just didn’t know that this was already posted, Shall we close this thread then?

    Best regards,
    Mike

    #1440421

    Thank you for your support. Yes, you can close this thread. Maybe it’ll help other users.

    Kind regards
    Ronald

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Disable Modal-Box FOOGALLERY’ is closed to new replies.