Jump to content

Product Pages - Stack Product Image and Product Description on Tablets

Go to solution Solved by tuanphan,

Recommended Posts

Posted (edited)

Hi

On mobile Product pages - SQSP automatically stacks the Product Image and the Product attributes i.e. Title, Description, Price etc.

Can this be extended to tablets that are up to 992px wide? 

I have large product descriptions and I do not like how the product pages look on screens that are >768px and <992px so I'd like to the force mobile view on these. 

Example product page:

www.purnamayurveda.com/therapies/p/abhyanga

Thanks

Akanksha

Edited by AkankshaK
  • Replies 4
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

You can use this CSS to Website Tools > Custom CSS

@media screen and (max-width:1024px) and (min-width:768px) {
.ProductItem .ProductItem-summary {
    flex-direction: column !important;
    align-items: center !important;
}
.tweak-product-basic-item-thumbnail-placement-below .ProductItem-gallery {
    position: relative !important;
    margin-bottom: 30px !important;
}
}

 

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!)

Posted
10 hours ago, tuanphan said:

You can use this CSS to Website Tools > Custom CSS

@media screen and (max-width:1024px) and (min-width:768px) {
.ProductItem .ProductItem-summary {
    flex-direction: column !important;
    align-items: center !important;
}
.tweak-product-basic-item-thumbnail-placement-below .ProductItem-gallery {
    position: relative !important;
    margin-bottom: 30px !important;
}
}

 

Thanks Tuan ! (Hope you are well)

The code is working ...somewhat.

After adding the CSS, there is white space around the product item summary. I have attached screenshot.

Is there a way to make it full width?

IMG_2721.JPG

  • Solution
Posted
On 8/24/2024 at 3:10 AM, AkankshaK said:

Thanks Tuan ! (Hope you are well)

The code is working ...somewhat.

After adding the CSS, there is white space around the product item summary. I have attached screenshot.

Is there a way to make it full width?

IMG_2721.JPG

Use this new code

@media screen and (max-width:1024px) and (min-width:768px) {
.ProductItem .ProductItem-summary {
    flex-direction: column !important;
    align-items: center !important;
}
.tweak-product-basic-item-thumbnail-placement-below .ProductItem-gallery {
    position: relative !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}
    .ProductItem-details {
        width: 100% !important;
    }
}

 

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!)

  • 2 weeks later...
Posted
On 8/26/2024 at 9:33 AM, tuanphan said:

Use this new code

@media screen and (max-width:1024px) and (min-width:768px) {
.ProductItem .ProductItem-summary {
    flex-direction: column !important;
    align-items: center !important;
}
.tweak-product-basic-item-thumbnail-placement-below .ProductItem-gallery {
    position: relative !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}
    .ProductItem-details {
        width: 100% !important;
    }
}

 

Thank you Tuan 🙏🏽☺️

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • 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.