-
AuthorPosts
-
July 6, 2021 at 10:40 pm #1308979
Hi
I’m trying to display a gallery on my home page. It’s all working exactly as I want other than at break points 989-1341px.
In order to display an even, filled out block of pictures with no white gap at the end, I just installed two galleries with a different amount of pictures all set to the exact amount uploaded with no pagination. I then deactivated one gallery for desktop view and the other for the other three, but unfortunately the break points aren’t all covered and I don’t know how to target the gallery in order to fix it. I basically want to display the desktop gallery only from 1341px up. Please test to see what I mean.
Can you tell me how to target this issue with CSS please?
Thanks a millionJuly 8, 2021 at 2:19 am #1309165Hey june,
Thanks for the login details. Could you post a screenshot highlighting the problem you are having please?
Best regards,
RikardJuly 10, 2021 at 12:15 pm #1309488Hi Rikard
The Gallery isn’t even at the bottom at break points 989-1341px.
Here’s a screenshot of what I mean:
https://snipboard.io/4fyH2j.jpgThis is how it looks below the break point:
https://snipboard.io/2YoCuf.jpgAnd this above it:
https://snipboard.io/pmtALX.jpgHow do I target the gallery at break points 989-1341px so it behaves like the second screenshot.
Thank you!July 11, 2021 at 1:01 pm #1309572Hi,
Thanks for the clarification. The settings you have selected will sort the images automatically based on a script. If you want different settings for other screen sizes, the you can add a copy of the current element, then select to use a grid in the Styling tab instead. We can help with hiding/showing the correct element for your selected screen size once you have added the copy.
Best regards,
RikardJuly 11, 2021 at 5:11 pm #1309593Hi Rikard,
I had a copy added all along. One is for desktop (top one) and the one below is for smaller screens. Now I’m lost as to what exactly you want me to do. If you want to add another copy please go ahead. You have the logins. Thank you!
July 12, 2021 at 7:40 am #1309690Hi,
Thanks for the update. I gave your galleries IDs, and unticked the visibility boxes in the element options. Then I added this to Quick CSS:
@media only screen and (min-width: 990px) and (max-width: 1340px) { #masonry-gallery-1 { display: none; } } @media only screen and (max-width: 989px) { #masonry-gallery-2 { display: none; } } @media only screen and (min-width: 1341px) { #masonry-gallery-2 { display: none; } }
Please check if those are the results you are looking for. If it’s hiding/displaying the wrong gallery, then simply switch the IDs around.
Best regards,
RikardJuly 12, 2021 at 12:19 pm #1309748Hi Rikard
Thank you so much for your help. You’re quite the star!
I adjusted the pixels and switched the id’s around and it’s now working how i want it to :)Thank you!
July 12, 2021 at 3:04 pm #1309809Hi june,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘gallery breaking points’ is closed to new replies.