Jump to content

Changing layout of portfolio gallery on mobile

Recommended Posts

Posted

Site URL: https://thecwordcomms.co.uk/my-work/the-lion-at-west-pennard

I have just launched a website, and I'm having issues with the layout of a portfolio page on mobile. On a desktop, the gallery on the portfolio shows two columns of images, which is correct. However, on a mobile I want this to become a single column - as this would also allow visitors to read the full caption. Here is one of the portfolio pages as an example: https://thecwordcomms.co.uk/my-work/the-lion-at-west-pennard

Does anyone else have this issue or know some coding to resolve this. Thanks in advance and to everyone for sharing their expertise on this forum. Thanks

  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply
Posted
1 hour ago, clockyer said:

Site URL: https://thecwordcomms.co.uk/my-work/the-lion-at-west-pennard

I have just launched a website, and I'm having issues with the layout of a portfolio page on mobile. On a desktop, the gallery on the portfolio shows two columns of images, which is correct. However, on a mobile I want this to become a single column - as this would also allow visitors to read the full caption. Here is one of the portfolio pages as an example: https://thecwordcomms.co.uk/my-work/the-lion-at-west-pennard

Does anyone else have this issue or know some coding to resolve this. Thanks in advance and to everyone for sharing their expertise on this forum. Thanks

Do you mean this result?

image.png.148286869df01aab7cf1078daeaefd8e.png

Try adding to Your Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="61b32085fb56f51804d9ef9d"] .gallery-grid-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

Let me know how it works on yours it

Press 👍 or mark this answer as solution to help another one too

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Brilliant thanks so much! That’s really useful. I actually redesigned the page using a gallery section. Thanks. Are you able to help me with my other question about inverting my logo on mobile other than my homepage? Thanks

Posted
6 hours ago, clockyer said:

Brilliant thanks so much! That’s really useful. I actually redesigned the page using a gallery section. Thanks. Are you able to help me with my other question about inverting my logo on mobile other than my homepage? Thanks

I've given a solution on your post, kindly try it and check if it works properly on your site

Hope it helps

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is 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.