• Let’s share tip with people not familiar with javascript…

    With the theme Divi, just need to disable Simple Light Box from the galery mobule (open light box twice).

    With jQuery it’s easy to target something with class, ID etc.

    The attribute data-slb-active of Simple light box is so useful !

    <script type="text/javascript">
    
    jQuery( document ).ready(function() { // when window is laoded
    
        // target ElegantThemes PageBuilder Galery Image Link <a> and set the attribute SLB Active to Zero (0) ! #easy
        jQuery( ".et_pb_gallery_image a" ).attr( "data-slb-active", "0" );
    
    });
    
    </script>

    It works. The light box doesn’t open twice, I keep there only the Divi one.

    Cheers

    The page I need help with: [log in to see the link]

  • The topic ‘Disable SLB on certain… sometimes’ is closed to new replies.