Removing the sale option and making the price one line?

Removing the sale option and making the price one line?

katie99dreams
Tourist
9 0 1

Hello, on mobile view my original price plus markdown price don't fit in one line. I want to remove the sale text too. If the original price and markdown can't fit in one line, how can I remove the original price and just keep the markdown?

Replies 7 (7)

goldi07
Navigator
376 41 67

Hello @katie99dreams 

To fix this in the Sense theme, you have two options:

1.Force both prices to fit in one line by reducing font size or adjusting spacing.
2.Hide the original price when they don’t fit in one line.
Solution 1: Adjust font size & spacing
Try reducing the font size for price elements in your CSS. Add this to your theme’s base.css or theme.css file:

@media screen and (max-width: 768px) {
  .price .price__sale {
    font-size: 14px; /* Adjust as needed */
  }
  .price .price__regular {
    font-size: 14px; /* Adjust as needed */
    margin-right: 5px;
  }
}

This helps fit both prices in one line.

 

Solution 2: Hide Original Price on Mobile
If the original price and markdown don’t fit, hide the original price on mobile and show only the markdown price. Add this to base.css or theme.css:

@media screen and (max-width: 768px) {
  .price .price__regular {
    display: none;
  }
}

This hides the original price (crossed-out price) on mobile, showing only the markdown price.

 

To remove the "Sale" text, edit your product-price.liquid file:

1.Go to Online Store > Themes > Edit Code
2.Open Snippets > product-price.liquid
3.Find something like:

<span class="price__badge-sale">
   {{ 'products.product.on_sale' | t }}
</span>

 

4.Delete or comment out that section.

 

Thank you 😊

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here
katie99dreams
Tourist
9 0 1

Hi! Thank you for much for your response. I tried the first option and it still didn't change anything. Then, I went to look at the last solution and i can't find the price_badge-sale in my code. I attached a screenshot as well. Do you know where it could be? WechatIMG1362.jpg

DaisyVo
Shopify Partner
4460 499 594

Hi @katie99dreams 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.aio.min.css and add this code at the end of the file

 

.card__badge.bottom.left {
    display: none !important;
}

.price--on-sale .price-item--regular {
    display: none !important;
}

 

Step 3: Find this file and remove text "From" 

DaisyVo_0-1741406946825.png

 

Result 

DaisyVo_1-1741406954961.png

 

Best,

Daisy

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
DaisyVo
Shopify Partner
4460 499 594

Yes, its css for your website

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
katie99dreams
Tourist
9 0 1

Hi! How can I just remove the 'from'? I want to keep everything else as is.

Rahul_dhiman
Shopify Partner
855 168 186

Hello @katie99dreams 
Go to online store ----> themes ----> actions ----> edit code ----> assets ----> component-card-aio-min.css
add this code at the end of the file and save.

.card__badge {
display: none !important;
}
s.price-item.price-item--regular {
display: none !important;
}

result
8.png

If this was helpful, hit the like button and accept the solution.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

katie99dreams
Tourist
9 0 1

Hi! How can I just remove the 'from'? I want to keep everything else as is.