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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.