Jump to content

Add text before price on main product only, not related products

Recommended Posts

Site URL: https://www.parkday.us/shop/p/perfectparkday

Is there a way to edit the text before a price on a Product page for ONLY the main product and none of the related products? I need to include custom text to show "Price including deposit: "before the actual price, however, this adds the same text below on my related products as well. 
 
I'm using the code: 
 

.ProductItem-relatedProducts .product-price:before {
  content: none !important; 
  }
#item-5ffa5ed039b4bc65fa2c4a69 .ProductItem .product-price:before {
  content: 'Price including deposit: ' !important; }

 

Thanks for any help!

Screen Shot 2021-01-30 at 9.00.31 PM.png

Screen Shot 2021-01-30 at 9.00.45 PM.png

Link to comment
  • Replies 2
  • Views 546
  • Created
  • Last Reply
58 minutes ago, ParkDayNYC said:

Site URL: https://www.parkday.us/shop/p/perfectparkday

Is there a way to edit the text before a price on a Product page for ONLY the main product and none of the related products? I need to include custom text to show "Price including deposit: "before the actual price, however, this adds the same text below on my related products as well. 
 
I'm using the code: 
 

.ProductItem-relatedProducts .product-price:before {
  content: none !important; 
  }
#item-5ffa5ed039b4bc65fa2c4a69 .ProductItem .product-price:before {
  content: 'Price including deposit: ' !important; }

 

Thanks for any help!

Screen Shot 2021-01-30 at 9.00.31 PM.png

Screen Shot 2021-01-30 at 9.00.45 PM.png

Use this instead


#item-5ffa5ed039b4bc65fa2c4a69 .ProductItem .ProductItem-details .product-price:before {
  content: 'Price including deposit: ' !important; }

Remove item id if you want to apply on all products

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.