disable shideshow #401
-
Is it possible to display the lightbox without navigation for several images/content - i.e. that only one slide is displayed at a time? |
Beta Was this translation helpful? Give feedback.
Answered by
gingerchew
Jan 27, 2023
Replies: 1 comment 1 reply
-
With a small amount of JS and some CSS it's easy to add, but there is already this rule in the css. .glightbox-button-hidden {
display: none;
} You can also add an attribute to the container and make it more dynamic. [data-slides="1"] .gbtn {
display: none;
} lightbox.on('open', () => {
const container = document.querySelector('.glightbox-container');
container.dataset.slides = container.querySelectorAll('.gslide').length;
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gingerchew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With a small amount of JS and some CSS it's easy to add, but there is already this rule in the css.
You can also add an attribute to the container and make it more dynamic.