No strikethrough on compared price for Capital theme

There is no strikethrough for the compared price on the Capital theme. The strikethrough does not show up in collections or on the product page. Is there a way I can fix this issue?

@axelsalinas627

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

toddlercomfort.com

@axelsalinas627

thanks for url can you try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme-index.min.css ->paste below code at the bottom of the file.
.product-item-price .is-sale + span.money.rrp {
    text-decoration: line-through !important;
}

It worked for my homepage collection but the strikethrough is still not on my product pages nor the category’s listed below:

”You may also like”

“Shop now”

@axelsalinas627

yes, please add this code

.product-item-price .rrp, span.product-price-compare.money {text-decoration: line-through !important;}

Nothing changed. I even tried adding both codes. The only strikethrough I see is the ones on the home page

Please add this extra line.
span.product-price-compare.money {text-decoration: line-through !important;}

@axelsalinas627

oh sorry can you try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme-product.min.css ->paste below code at the bottom of the file.
.product-item-price .rrp {text-decoration: line-through !important;}

Okay, that worked. The only strikethrough missing now is on the products and the “shop now” page

So when I click on a certain product it looks like 2 prices without the strikethrough on the compared price.

@axelsalinas627

yes, please send screenshot

Please add this the code.

span.product-price-compare.money, span.money.rrp {text-decoration: line-through !important;}

Thank you, It fixed the strikethrough on my products descriptions page.

The only missing strikethroughs now are on my “shop now” page where all my products are.

Please add the previous code to Asset->/theme-collection.min.css and it should work.

Thank you!!