Jump to content

Can change gallery from horizontal scrolling to vertical scrolling on mobile devices?

Recommended Posts

Is it possible to have a gallery change from horizontal scrolling for desktop version to vertical scrolling for mobile devices?

I have a gallery page that looks nice scrolling horizontally, but when the responsive design changes to mobile or tablet and so portrait it leaves a lot of blank space underneath and generally doesn't look that good.

I would like a gallery that when in mobile or tablet mode will scroll vertically and in desktop horizontally.

Any help anyone has to offer on this is appreciated!

Link to comment
  • Replies 16
  • Created
  • Last Reply

In a word, no. However, there may be other things you can do to adjust spacing or design. The community will need a working link to your website in order to see the issue, the template you are using and the settings in use.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

If you don't intend to put content below this, one solution would be to show the content in a Carousel Gallery Block on desktop (similar to what you have now)

alt text

and then switch to a Stack Gallery Block or Grid Gallery Block on mobile devices:

alt text

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

That's exactly what I want to do! But, when I change it on mobile to stacked it does it for desktop too and vice versa. I spoke to someone on the squarespace team and they said they didn't think it was possible, but I thought I'd ask here in case someone knows a way.

Link to comment

That's exactly what I want to do! But, when I change it on mobile to stacked it does it for desktop too and vice versa. I spoke to someone on the squarespace team and they said they didn't think it was possible, but I thought I'd ask here in case someone knows a way.

Link to comment

It's possible :-)

The next step is to create a page where you can see it working.

Add the two Gallery Blocks to it, one above the other. Add the images to both. Set the first one to Carousel and the second to Stacked or Grid, as discussed above.

Once built, you'll need some CSS to hide one of the galleries depending on the visitor's device. if you need help with this, post a link to the page and I'll take a look.

-Paul

Squarespace Expert & Professional Developer

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Now that you've added two Gallery Blocks in different styles, add this to Design > Custom CSS:


@media only screen and (max-width: 768px) {
 #block-yui_3_17_2_1_1563217934473_3719 {
   display:none;
 }
}
@media only screen and (min-width: 769px) {
 #block-yui_3_17_2_1_1563302730204_24847 {
   display: none;
 }
}

When you switch between mobile and desktop, you should see the different views. It works by referring to the unique reference ID of each Gallery Block. As they are unique, it would stop working if you deleted one of these specific blocks.

Let me know how you get on.

-Paul

Squarespace Expert & Professional Developer

Contributors to this forum voluntarily give their time to help you. If we correctly answer your question, please accept the answer by clicking Accept below it (you'll see it when you're logged on). If an answer doesn't help, feel free to ask for more help or wait for other forum users to add their comments and/or answers.

Whenever an accepted answer helps you, please vote it up using the up arrow on the right. This helps other forum users by giving them confidence in an answer.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

That's the standard margin above the page content on mobile. You can reduce it with:


@media only screen and (max-width: 768px) {
 .site-spacing-extra-small .site-page {
   margin-top: 0;
 }
}


About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.
×
×
  • 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.