Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide slider buttons and disable swiping #132

Closed
luccascorrea opened this issue Nov 30, 2020 · 1 comment
Closed

Hide slider buttons and disable swiping #132

luccascorrea opened this issue Nov 30, 2020 · 1 comment

Comments

@luccascorrea
Copy link

Hi!

For a specific use case, I would like users to not be able to swipe to change the slide. Also I'd like to hide the previous/next buttons (I added links to the page that will open a specific slide and I'd like the user to navigate using those).

Is this possible?

Thanks!

@piotrzdziarski
Copy link
Collaborator

You can do it via CSS:

.fslightbox-slide-btn-container {
  display: none !important;
}

.fslightbox-container > .fslightbox-absoluted {
  pointer-events: none;
}

But this solution works only for images, because it disables video and youtube controls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants