Dawn theme product card title label badge

Hello,

I’m using dawn theme. I want to display a label above the product card title, which will vary depending on the tag assigned to each product. The label should reflect the name of the tag.

However, it appears that the code I’m currently using only places the label inside the image box. Could someone assist me in writing a code that positions the label above the title, which is outside the image box?

I placed this code in “card-product.liquid” right below “

” in line 105. Didn’t work!

{%- if card_product.tags contains 'new' -%}
{{ 'new' }}
{%- endif -%}

=