Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
razmalazz

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

Question

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!

Edited by Paul2009

Share this post


Link to post

16 answers to this question

Recommended Posts

  • 0

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.


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

Share this post


Link to post
  • 0

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.


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

Share this post


Link to post
  • 0

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


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

Share this post


Link to post
  • 0

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.

Share this post


Link to post
  • 0

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.

Share this post


Link to post
  • 0

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


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

Share this post


Link to post
  • 0

Glad to hear it's possible, I've added the two gallery blocks and saved the changes. Same link, www.studiovidere.com. I don't know too much about CSS though so would definitely love your help.

Share this post


Link to post
  • 0

Glad to hear it's possible, I've added the two gallery blocks and saved the changes. Same link, www.studiovidere.com. I don't know too much about CSS though so would definitely love your help.

Share this post


Link to post
  • 0

That works great! Thank you very much for this.Do you know if there is a way to decrease this space:

alt text

I think this is the area where the hidden carousel is, no worries if not, I'm happy for the help to have got me this far

capture.png.8be761165480b619f080d25ca62ca288.png

Share this post


Link to post
  • 0

That works great! Thank you very much for this.Do you know if there is a way to decrease this space:

alt text

I think this is the area where the hidden carousel is, no worries if not, I'm happy for the help to have got me this far

capture.png.b43d7d8e227fe787c85312553435aaba.png

Share this post


Link to post
  • 0

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;
 }
}



World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...