Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1336321

    Hi,
    Is it possible to disable the enfold Lightbox modal for NextGen Galleries only? I don’t want to disable the Lightbox per page because we need the Lightbox to display advance options for the Cookie Consent.

    I’m looking for a function like Guinne007 wrote for another plugin in the following thread:
    https://kriesi.at/support/topic/disable-lightbox-modal-just-for-photo-carousel/#post-905062

    #1336414

    Hey,

    Thanks for contacting us!

    You can add following code to bottom of Functions.php file of your theme and replace “NEXTGEN-CLASS-HERE” with NextGen class

    function add_class_to_wonderplugincarousel() {
    ?>
    <script type="text/javascript">
       jQuery(document).ready(function() {
          jQuery('.NEXTGEN-CLASS-HERE').addClass('noLightbox');
       });
     </script>
    <?php
    }
    add_action('wp_footer', 'add_class_to_wonderplugincarousel');

    If you are not sure of the class, please share a link of your page where you are using NextGen :)

    Best regards,
    Yigit

    • This reply was modified 2 years, 11 months ago by Yigit.
    #1336430

    … great – this is working – excellent support ! ! !

    #1336474

    Hi,

    Great, I’m glad that Yigit could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.