Jump to content

Mojave Product Page Single Image Mobile Fix

Recommended Posts

Hello all,

I'm trying to optimize the mobile view on the Mojave template, for a "Products" page, so that a single centered image appears.

I have the product display set to 3 now - which looks good on a desktop - but want to resize it to 1 image @640px. I can't seem to work it out.

Has anyone tried this before and would you mind sharing your workaround please?

Cheers!

Alex

Link to comment
  • Replies 6
  • Created
  • Last Reply

add to Page Header

<style>
  @media screen and (max-width:640px) {
  .ProductList-item {
    clear: none;
    width: 100% !important;
    margin: 0 !important;
}
    .ProductList-image {
    width: 100% !important;
    height: auto !important;
}
  }
</style>

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
7 hours ago, allucaci said:

That's brilliant! Thank you so much!! 

If I wanted to have 2 images per row on an iPad, would that be possible?

Thank you again!

yes, you can with css

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.