• Resolved utopiaarquitetos

    (@utopiaarquitetos)


    Hi,

    Thank you for your great plugin!

    Unfortunatly, I am having an issue with captions.

    I am using generateblocks and generatepress.
    I managed to get it working with a custom post type that has an element that dinamically calls each image from the custom field of each post.

    This is my functions php

    add_filter( 'baguettebox_enqueue_assets', function ($load) { return $load ?: is_singular('obras'); } );
    add_filter( 'baguettebox_selector', function() { return '.entry-content'; } ); // needed for lightbox with all images and in cpt too

    To work, I create a container and give it ‘entry-content’ custom class. And then I place images inside.

    The lighbox works fine. But the caption inside lightbox calls the first image of the container. This means I can navigate throughout the images but captions are all from the first image.

    Do you know if I can have captions without a div for each image?

    Kind regards,

    Ricardo

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Caption problem’ is closed to new replies.