We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I added baguetteBox to Wordpress and for galleries it works perfectly well. But for normal images it is not working.
Normal images are displayed like this: <figure class="wp-block-image"><a ...><img ...></a></figure>
<figure class="wp-block-image"><a ...><img ...></a></figure>
Galleries like this: <figure class="wp-block-gallery"><figure class="wp-block-image"><a ...><img ...></a></figure></figure>
<figure class="wp-block-gallery"><figure class="wp-block-image"><a ...><img ...></a></figure></figure>
If I try to add both classes to the .run , I get an error. ... baguetteBox.run('.wp-block-gallery, .wp-block-image',{ ...
... baguetteBox.run('.wp-block-gallery, .wp-block-image',{ ...
Any ideas how I can get to the point, where I can open single images AND galleries?
Thanks a lot! :-)
The text was updated successfully, but these errors were encountered:
There is a WordPress plugin that uses baguetteBox under the hood.
Maybe try your luck with it.
https://de.wordpress.org/plugins/gallery-block-lightbox/
https://github.com/goaround/gallery-block-lightbox
Sorry, something went wrong.
No branches or pull requests
I added baguetteBox to Wordpress and for galleries it works perfectly well.
But for normal images it is not working.
Normal images are displayed like this:
<figure class="wp-block-image"><a ...><img ...></a></figure>
Galleries like this:
<figure class="wp-block-gallery"><figure class="wp-block-image"><a ...><img ...></a></figure></figure>
If I try to add both classes to the .run , I get an error.
... baguetteBox.run('.wp-block-gallery, .wp-block-image',{ ...
Any ideas how I can get to the point, where I can open single images AND galleries?
Thanks a lot! :-)
The text was updated successfully, but these errors were encountered: