Add text before all regular Price (product page and collection grid)

Caroline2023
Shopify Partner
7 0 0

Hi I want to add the text "List Price:" before my regular price.

I've tried to edit the 'main-page.liquid' like this, but the text and the price will appear on separate lines, but I wish it can display in the same line.
The theme that I'm using is Craft.

 

 

 

 

{%- when 'price' -%}
  <div class="no-js-hidden" id="price-{{ section.id }}" role="status" {{ block.shopify_attributes }}>
    <span>List Price </span>{%- render 'price',
      product: product,
      use_variant: true,
      show_badges: true,
      price_class: 'price--large'
    -%}
  </div>

 

 

 

 



Caroline2023_0-1712894699304.png

Caroline2023_1-1712894754384.png

 

Replies 4 (4)

LuffyOnePiece
Shopify Partner
545 80 98

Hi @Caroline2023 ,

 

Can you please provide a preview URL of the store so that I can assist you on?

 

Thank you

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184
Caroline2023
Shopify Partner
7 0 0

https://caroline-test1.myshopify.com/?_ab=0&_fd=0&_sc=1
the password is"welcome' Thanks for your assist.

LuffyOnePiece
Shopify Partner
545 80 98

Hi @Caroline2023 ,

 

Can you please add the text so that I can fix this with CSS.

 

Thank you

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184
Caroline2023
Shopify Partner
7 0 0

Hi I've add the text, would you mind to check for me? thanks.