Skip to content
Discussion options

You must be logged in to vote

No, currently the container must be a child of each slide.
To achieve what you desire, you need to modify this line:
https://github.com/Splidejs/splide/blob/master/src/js/components/Slides/Slide.ts#L96

Or maybe you can do this (not ideal though):

<li class="splide__slide">
  <figure class="splide__slide__container">
    <img src="path/to/image" />
    <figcaption>Caption text is here.</figcaption>
  </figure>
</li>

But you need to offset the figcaption by absolute position.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@csteinert
Comment options

Answer selected by csteinert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants