Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1477112

    Hello everyone,
    is there a way to open only images of a gallery in the lightbox and not all images of the page when the Enfold Lightbox is activated?

    The native WordPress Gallery has a unique ID (wp-block-gallery-2) of the galleries in the class:
    <figure class="wp-block-gallery has-nested-images columns-3 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">

    However, I primarily use cadence blocks for galleries. Here the parent DIV has a suitable way of identifying this (id=‘splide02’)
    <div class="kt-blocks-carousel-init kb-blocks-fluid-carousel kt-carousel-arrowstyle-whiteondark kt-carousel-dotstyle-dark kb-splide splide splide-initialized splide-slider splide--loop splide--ltr splide--draggable is-active is-overflow is-initialized" data-slider-anim-speed="400" data-slider-scroll="1" data-slider-arrows="true" data-slider-dots="true" data-slider-hover-pause="false" data-slider-auto="" data-slider-speed="7000" data-slider-type="fluidcarousel" data-slider-center-mode="true" data-slider-gap="10px" data-slider-gap-tablet="10px" data-slider-gap-mobile="10px" id="splide02" role="region" aria-roledescription="carousel">

    Many thanks for your support and suggestions.

    Best regards

    #1477116

    i guess that this Carousel is not an Enfold created one. And your problem now is on opening one of those carousel image in lightbox – on navigating to the next inside lightbox – it shows other images from outside the carousel too?
    How did you place your carousel to the enfold layout – via shortcode … ?

    #1477174

    Hi,
    It looks like you are using the plugin Kadence Blocks, this was created for the WP Block Editor and doesn’t seem to offer shortcodes, so it may not be compatible with Enfold.
    So changing the behavior of the lightbox may not be possible, try asking the plugin author for a solution, they may have one.

    Best regards,
    Mike

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