Jump to content

Different gallery types for desktop and mobile

Recommended Posts

Hey!

I'm sure this gets asked a lot but was just wondering if theres a simple way to have two different gallery types for desktop and mobile? Currently have it set to slideshow: simple for desktop and want to change mobile to have a single row scroll like grid: simple or grid: masonry with the original image aspect ratio being left alone (instead of it cropping). Attached what I'm trying to change on just mobile but with more spacing between the images.

Thanks!

Screenshot 2023-06-29 at 10.27.18 AM.png

Screenshot 2023-06-29 at 10.29.47 AM.png

Link to comment
  • Replies 11
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Hey Tuanphan,

Same here. The page I would need a desktop and other mobile gallery on, is already live, so can you share the code beforehand or do you need it ready with the two galleries?

Another question, none of the slideshow galleries adapt to landscape pics on the mobile version -> is there any way i can incorporate some code where, when it's a landscape pic, the frame adapts?

Thanks! Francis

Link to comment
16 hours ago, FabianTeppich said:

Hey Tuanphan,


I have the same Problem and want to change the Gallery Type on mobile only.

Can you share the Code to show 1 gallery on desktop and show another one on mobile?

Thank you! 🙂

Can you share link to page where you added? 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
  • 4 weeks later...

hi tuanpham,


i have issues with spacing and ratios of pictures between desktop and mobile on certain subpages (model test, commercial) and i think that would be an interesting fix

the only thing is that i'm using a blank section with inserted images as gallery itself does not allow me to have the desired size of images on desktop (even with inset option they are too big when there are 2 columns).


would it be possible to display the blank section with inserted images solely on desktop while the gallery would be on mobile? 🙏😍

my page is https://patrycjahelenabielawska.squarespace.com/
 

thank you



 

Link to comment

Does anyone know if the code used for this specific to each individual page? The Custom CSS box doesn't seem to be linked to any particular page, so I assumed it would apply the changes site-wide, but it doesn't seem to. 

Link to comment
On 7/24/2023 at 12:37 AM, patrycjahelena_ said:

hi tuanpham,


i have issues with spacing and ratios of pictures between desktop and mobile on certain subpages (model test, commercial) and i think that would be an interesting fix

the only thing is that i'm using a blank section with inserted images as gallery itself does not allow me to have the desired size of images on desktop (even with inset option they are too big when there are 2 columns).


would it be possible to display the blank section with inserted images solely on desktop while the gallery would be on mobile? 🙏😍

my page is https://patrycjahelenabielawska.squarespace.com/
 

thank you



 

You mean show this blank on desktop and show grid under blank on mobile?

image.thumb.png.ab5eacd5f2c38467877f28ce87c7cf4e.png

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
14 hours ago, DionS said:

Does anyone know if the code used for this specific to each individual page? The Custom CSS box doesn't seem to be linked to any particular page, so I assumed it would apply the changes site-wide, but it doesn't seem to. 

Can you share link to page where you have problem? We can use ID to target individual page only

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
3 hours ago, tuanphan said:

You mean show this blank on desktop and show grid under blank on mobile?

image.thumb.png.ab5eacd5f2c38467877f28ce87c7cf4e.png

hey. so the way i had to build my 'gallery' was inserting blank section, and then image blocks within this section, so each picture is a separate blockimage.thumb.png.90b6664131d6ae27e6f829687e16b71a.png

image.thumb.png.d642324fadfc472e7a47d87c757db9ea.png

image.thumb.png.b59d09ee17b89cc9da27244969881b2c.png

i opted for this way as inset gallery (simple grid) with 2 columns generates pictures that are simply too big for desktop. 

however, the display on mobile is far from ideal and i was thinking that disabling this so-called blank section with inserted images on mobile and instead enabling a normal gallery section for mobile only would improve the mobile experience.

Link to comment

You can add this to Design > Custom CSS to hide image gallery grid on mobile

/* hide gallery grid mobile */
@media screen and (max-width:767px) {
	[data-section-id="64b67ddeef13745794ebdbcc"] {
		display: none !important;
}
}

To find data section id in the next case, use this free tool

https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff

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.