Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18528
    mathieu
    Participant

    Hi guys,

    I have a private site with Responsive Lightbox and Tiled Gallery Carousel Without JetPack.

    Tiled Gallery Carousel configuration :
    Enable carousel : No
    Tiled Galleries : Yes

    Responsive lightbox configuration : Nivo Lightbox

    On the single image and on the standard wordpress gallery, Responsive Lighbox works well.
    On Tiled gallery click, in version 1.6.12, Responsive Lighbox works fine too.

    But in version 1.7.0 or 1.7.1, Responsive lightbox doesn’t work on Tiled gallery.
    In the class-frontend.php, the add_custom_gallery_lightbox_selector function has been modified.
    I think the problem comes from there.

    Will you re-establish compatibility ?

    Thanks

    #18775
    mathieu
    Participant

    Hi,

    I solved my problem with

    /**
     * Responsive Lightbox : Fix tilled gallery
     */
    add_filter( 'post_gallery', 'add_custom_gallery_lightbox_selector', 2000 );
    function add_custom_gallery_lightbox_selector( $content, $attr ){
        if( function_exists( 'Responsive_Lightbox' ) ){
            return Responsive_Lightbox()->frontend->add_links_lightbox_selector( $content );
        }
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.