Jump to content

Swap position of .product-excerpt and .product-price

Recommended Posts

Posted

Site URL: https://badlab.squarespace.com

Page example - https://badlab.squarespace.com/store/backend/bold-training-t-womens
Password - temp

Hi,

I need help swapping the positions of .product-excerpt and .product-price on product pages. 
I've managed to decrease the margins to the right size and I've moved <div class="product-excerpt" data-content-field="excerpt">_</div> and <div class="product-price">_</div> using developer tools in chrome but haven't managed to rearrange in CSS.

I'd also like to move .product-excerpt on MOBILE to below .product-title mobile

Any help appreciated.  

  • Replies 9
  • Views 651
  • Created
  • Last Reply
Posted
On 2/10/2021 at 7:37 PM, smithandrew1993 said:

Hi @tuanphan,

If possible, yes.

Add to Design > Custom CSS

/* desktop position */
@media screen and (min-width:641px) {
div#productDetails {
    display: flex;
    flex-direction: column;
}
.product-excerpt {
    order: 2;
}
.product-price {
    order: 3;
}
.product-variants {
    order: 4;
}
.product-quantity-input {
    order: 5;
}
.sqs-add-to-cart-button-wrapper {
    order: 6;
}
.product-sharing {
    order: 7;
}
}

 

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

  • 1 month later...
Posted
On 4/11/2021 at 12:28 AM, ElizabethM said:

Hi I would like to know if it's possible to reduce the width of the boxes with special size and color ? 

 

Thank you for your help1698993256_Capturedcran2021-04-1019_25_00.thumb.png.e4c345aca5d77929a477390d87c048ce.png

Hi. Possibile. Can you share link to product in screenshot?

 

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

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.