Dawn theme: How to change product page's inventory amount color and text

1 0 1


For "continue selling when out of stock" products it shows green light and "in stock" as for those items that are in stock.


I would like to differentiate this with different color (orange maybe) and with text "order in advance" or something.


How to do this?


I have tried Kaktus, but it doesn't work that well. Sometimes it shows pre-order button for product, sometimes it doesn't. Also it does not change that green "in stock" announcement.

Replies 2 (2)

Shopify Partner
5085 1211 1481

Hi @Pelikrypta 


You can achieve this by following the instructions below. 


  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
  4. And Save.
.product__inventory circle {
    fill: orange;

.product__inventory {
    color: orange;


5. Next, under the Section folder, open the "main-product.liquid" file

6. Find the code {{- 'products.product.inventory_out_of_stock' | t -}} and replace it to your text "Order in advance".


See image below for reference



7. Click SAVE






Please don't forget to 



Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at


1 0 0

Can you show the what code looks like after replacing it with the text “order in advance”? Thank you