Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

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


ParkDayNYC

Question

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 post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular 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

Use this instead #item-5ffa5ed039b4bc65fa2c4a69 .ProductItem .ProductItem-details .product-price:before { content: 'Price including deposit: ' !important; } Remove item id if you want to app

Thanks so much!! Worked great 🙂 

Posted Images

2 answers to this question

Recommended Posts

  • 0
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

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Animated Heading Block
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...