- This topic has 12 replies, 2 voices, and was last updated 4 years ago by
David.
-
AuthorPosts
-
March 8, 2019 at 5:01 am #832693
David
Hello
I’ve set up some tabs and want to load a gallery in to each one – I’ve got it kind of working, but if you click on tab 2 or 3 the images don’t show the same as they do on the first tab…
https://www.wilstonsofavebury.co.uk/projects/galtemoore/
Any ideas why the other galleries aren’t loading properly?
I’m using this to change the standard WP gallery in to a masonry one…
https://en-gb.wordpress.org/plugins/photoswipe-masonry/
Thanks
DaveGeneratePress 2.2.2March 8, 2019 at 7:05 am #832920David
StaffCustomer SupportHi there,
looks like its because the gallery gets ‘built’ on viewport load or screen size change. Which won’t be triggered by clicking a tab. So before that happens Gallery Container has no set height and therefore neither does the tab.
You might want to check with Photoslide to see if they have a solution.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 8, 2019 at 7:20 am #832938David
Ok thanks David
March 8, 2019 at 7:21 am #832942David
StaffCustomer SupportYou’re welcome.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 8, 2019 at 7:23 am #832945David
Any other ideas how I can get the gallery to show massonry without using the plugin?
March 8, 2019 at 7:30 am #832958David
StaffCustomer SupportIf you want to just add a normal gallery to the tab content then i may have some CSS that will do the trick
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 8, 2019 at 7:50 am #832984David
That would be great – would it be easy to add a lightbox?
March 8, 2019 at 8:08 am #833006David
StaffCustomer SupportFeatherlight plugin is a really good and lightweight plugin
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 8, 2019 at 8:15 am #833017David
Great, I’ll take a look – anymore help with the css would be great 🙂
March 8, 2019 at 8:36 am #833047David
StaffCustomer SupportIf you can set up just a simple single column gallery on a test page i can take a look at the CSS required.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 8, 2019 at 9:00 am #833064David
March 8, 2019 at 9:37 am #833106David
StaffCustomer SupportSo it won’t do any clever re-ordering but try this which will apply to all single column galleries:
.gallery { column-count: 2; column-gap: 0px; }
Or you can target each one with its unique ID like so:
#gallery-1 { column-count: 2; column-gap: 0px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 8, 2019 at 9:41 am #833116David
Great, I’ll take a look at adding the lightbox too – thanks David
-
AuthorPosts
- You must be logged in to reply to this topic.