I have the same question about spacing between gallery thumbnails. I was able to minimize the spacing but I wasn’t able to remove the vertical spacing completely. The problem becomes more apparent when you view on mobile and it only stacks a single vertical column.
I edited the photoswipe-masonry.php file. Search for:
.photoswipe_gallery figure {
Then change padding from 5px to 0px.
You can also add the css to your theme css so it’s not overwritten.
.photoswipe_gallery figure {
padding: 20px !important;
}
Re: Zoom. You would have to look at the Photoswipe options for this and edit the plugin. It’s not built into the plugin options at this stage sorry.
http://photoswipe.com/documentation/options.html
Thread Starter
AdiRMG
(@adirmg)
Thanks for the solution!
I will check with Photoswipe for zooming.
Is there any way to remove the vertical padding? I still can’t get that to disappear? I even tried changing the "spacing"
variable in the photoswipe.js / min.js files from 0.12 to 0.
Try this in your css
.photoswipe_gallery figure {
padding: 0 20px !important;
}
Thread Starter
AdiRMG
(@adirmg)
Hi. I have another question.
The photos that are in portrait orientation are not as wide as the photos that are in landscape orientation and because of this the vertical spacing between them is bigger.
How can i make them have the same width as the ones that are in landscape orientation?
It should be OK. Can you post a link?
@adirmg, can you post your solution? Did you figure out to to resolve (remove) the vertical padding gap?