Im hoping someone could direct me to some resources or recommend the process to do the following.
Theme: Shopify DEBUT Theme
I want a label / icon to either :
be in place of where the sale tag normally would be
or
Overlaid in the corner of the image of the product.
The label / badge would only appear if the product has a specific tag related to the product. Such as the tag “NEW” will display a “New” label in either of the above mentioned positions.
Can anyone help me out with something like this? Im new to Liquid.
Here are both options. The actual solutions require pasting just 3-5 lines of code plus the css. I added extra code lines below to (hopefully) make it easier for you to get your bearings.
Solution 1 (using Liquid):
The code below will add a ‘New’ badge where the ‘Sale’ Badge appears next to the price on Debut.
Starting on line 87 of product-price.liquid add the following:
{% if product.tags contains "New" %}
New
{% endif %}
This code is placed just after the sold out bade withing the price badges div like so:
{{ 'products.product.on_sale' | t }}
{{ 'products.product.sold_out' | t }}
{% if product.tags contains "New" %}
New
{% endif %}
Here’s the style:
Solution 2 (using Liquid):
The code below will overlay an image (your ‘New’ banner) on the right top corner of the featured media image.
Add the following starting on line 60 of media.liquid.
{% if product.tags contains "New" %}

{% endif %}
This code comes right after and shares a div with the featured media image:
{% if product.tags contains "New" %}

{% endif %}
For your second suggestion - I did try this out and would need to test it a bit more - but the product image was stacking duplicates when I was using it. But it was working, just needed cleaning up. The first solution is much neater solution.