Jump to content

Change Gallery on Mobile Version for 1 Column (7.1)

Recommended Posts

On 1/14/2023 at 3:36 AM, W75 said:

Hi! 

Can I have 2 columns on desktop and just 1 column on mobile version?  

my page:   https://www.wojtekurbanek.com/

 

Thanks so much for the help

Add to Design > Custom CSS

@media screen and (max-width:767px) {
body.homepage .gallery-grid-wrapper {
    grid-template-columns: repeat(1,1fr) !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
On 3/10/2023 at 3:05 AM, DevonLois said:

Hi @tuanphan I'm also hoping to apply this same 3 to 1 column on mobile for grid-simple gallery sections across my site, such as gallery sections on the page below:

https://www.pjroytaiko.org/pj-roy-story
password: FreeSpirit

Thanks so much in advance!

With Gallery Grid, add this to Design > Custom CSS

/* Gallery Grid 1 column mobile */
@media screen and (max-width:767px) {
.gallery-grid-wrapper {
    grid-template-columns: repeat(1,1fr) !important;
}
}

With Gallery Strips, Masonry, we will need another code, if you use them, please share page url, we can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 3/11/2023 at 3:17 AM, tuanphan said:

With Gallery Grid, add this to Design > Custom CSS

/* Gallery Grid 1 column mobile */
@media screen and (max-width:767px) {
.gallery-grid-wrapper {
    grid-template-columns: repeat(1,1fr) !important;
}
}

With Gallery Strips, Masonry, we will need another code, if you use them, please share page url, we can check easier

Thanks so much @tuanphan this is working for grid gallery sections. How can I also apply to grid gallery blocks?

https://www.pjroytaiko.org/inspired-costume-design
password: FreeSpirit

thank you thank you!

Screenshot 2023-03-12 100601.png

Link to comment
On 3/13/2023 at 12:07 AM, DevonLois said:

Thanks so much @tuanphan this is working for grid gallery sections. How can I also apply to grid gallery blocks?

https://www.pjroytaiko.org/inspired-costume-design
password: FreeSpirit

thank you thank you!

Screenshot 2023-03-12 100601.png

Use this code

@media screen and (max-width:767px) {
.gallery-block .slide {
    width: 100% !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 7 months later...
On 2/5/2021 at 4:01 AM, tuanphan said:

Add to Design > Custom CSS

/* Masonry one item on mobile */
@media screen and (max-width:767px) {
	.gallery-masonry-wrapper.gallery-masonry-list--ready {
    height: auto !important;
}
figure.gallery-masonry-item {
    position: relative !important;
    width: 100% !important;
    transform: unset !important;
}
.gallery-masonry-item-wrapper {
    height: auto !important;
}
.gallery-masonry .gallery-masonry-item[data-loaded] img {
    width: 100% !important;
}
.gallery-masonry {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
}

 

Hey i am new to 7.1 and when i added this code it didn't change it for me. i am not sure why it isnt working 

 

Link to comment
On 10/17/2023 at 6:15 AM, cassadee said:

Hey i am new to 7.1 and when i added this code it didn't change it for me. i am not sure why it isnt working 

 

Can you share link to page where you use gallery? This code for Gallery Masonry, maybe you used another layout

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.