How to remove SOLD OUT badge from just a single collection? DAWN theme

This is the third time I have had to ask, but every time I update the DAWN theme, the previous instructions to remove the SOLD OUT badges don’t work.

Ideally, I would like to learn how to figure this out myself, but for now I just need to remove the SOLD OUT badge from ONLY ONE COLLECTION - this one: https://rowsomeleather.com/collections/select-portfolio

TIA!

1 Like

Hi @RowsomeLeather ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:

{% assign full_url = request.host | append: request.path %}
{% if full_url contains 'select-portfolio' %}

{% endif %}

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

  • Then find the theme.liqid file.
  • Then add the following code at the before tag and press ‘Save’ to save it.
{% if collection.handle == 'select-portfolio' %}
  
{% endif %}
  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
1 Like

Step 1: Go to Admin → Online store → Theme > Edit code

Step 2: Find the file theme.liquid

Step 3: Add this code above tag


Result:

  • Collection: select-portfolio

If it helps you, please like and mark it as the solution.

Best Regards