Tagged: 

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

    Hello to all that read these forums,

    I am coming to you with a particularly niche issue but it seems there’s been a few similar situations in the past that don’t quite fit my need.

    I am trying to utilize the plugin Modula as it expands on the lightbox and other options beyond the standard Masonry Gallery within Enfold. It also has one key feature that the client likes which Enfold’s gallery does NOT do, have a fixed height thus allowing the images to size and adjust to the max height of the gallery and having a fluid view of the images without broken consistency at the bottom of the gallery.

    My issue is
    – When I deactivate the Enfold Lightbox option within the theme options, it deactivates the lightbox of Modula also.
    – When both are active, both lightboxes appear thus being redundant (This is the current view in my private link).
    – When I deactivate the lightbox on Modula, no link is generated so no lightbox occurs.

    I have tried to utilize previous edits to the avia.js that Yigit had given in the past but those responses were near 2016. I found the newer avia-snippet-lightbox.js also and tried to add .single-portfolio ( am aiming to remove the lightbox from the single portfolio’s entirely) to the classes to exclude and it still ignores that.

    Just as a side note for potential options of improvement, I wouldn’t use this plugin if it wasn’t for the fixed height option of the gallery that keeps it consistent. The Masonry gallery does almost what I want but it comes with discrepancies like mentioned above.

    Appreciate you all for building a quality theme!

    Aaron – TFG

    #1246519

    Hey thefirmgraphics,
    Sorry for the late reply and thanks for the login, it seems that the plugin uses the same trigger to launch the lightboxs as the theme does, so to correct I disabled the lightbox option in the theme and then added this code to the end of your functions.php file in Appearance > Editor:

    function custom_modula_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function() {
        $('.modula-items .modula-item-link').addClass('lightbox-added');
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_modula_script');

    This is working now, please clear your browser cache and check.

    Best regards,
    Mike

    #1246588

    Yeah, I figured it had something to do with similar triggers or even something as the same class name in both.

    Thank you for the quick assistance!

    Aaron – TFG

    #1246667

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Modula & Enfold Lightboxes can't play together, can you help change that?’ is closed to new replies.