Tagged: enfold gallery, mobile
Is there a way to add breakpoints to the Enfold Gallery feature (https://kriesi.at/themes/enfold/shortcodes/gallery/). The Masonry Gallery does a nice job resizing itself as the screen/device gets smaller. But the regular Gallery doesn’t do that. I have a 5 column Gallery set-up and since all 5 columns do not change/reposition for smaller devices, the images displayed in them are very hard to see. Thanks.
Hi NicomIT,
Do you want to make it one column for mobile devices?
Best regards,
Nikko
Hi Nikko,
Two columns would be fine.
Thanks!
Hi NicomIT,
Please add this CSS code in Enfold > General Styling > Quick CSS:
@media only screen and (max-width:767px) {
#top .avia-gallery-thumb {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
#top #wrap_all .avia-gallery .avia-gallery-thumb a {
float: none;
width: 100%;
}
}
Hope it helps.
Best regards,
Nikko
Thanks Nikko. That worked great.
Hi,
Great, I’m glad that Nikko could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi Rikard.
You should be fine to close it.
Thanks.
Hi NicomIT,
Thanks for using Enfold and have a great weekend!
Best regards,
Nikko