item layout with new tag

kldlaz
Excursionist
79 0 6

i added a new tag to items  that are created within 15 days

when i add the new tag the item picture  tend to go down . and i lose the alignment

 

this is the code i use to insert the new in teh snipe

{% assign date_created = product.created_at | date:'%s' %}
{% assign date_now = 'now' | date:'%s' %}
{% assign difference = date_now | minus: date_created %}

{% if difference < 1296000 %}

<span class="badge-new custom-badge-new-label">NEW</span>


{% endif %}

WhatsApp Image 2021-06-22 at 11.09.21 AM.jpeg

0 Likes
kldlaz
Excursionist
79 0 6

i use the below code

it seems itfixed the problem but the new become wider

how can i make the new smaller?

 

0 Likes
Natztech
Shopify Partner
1335 371 908

hello @kldlaz 

Please provide website url and if your store is password protected then also provide password So I will check and provide a solution here.

Want to theme customize contact us E-mail : natztech2312@gmail.com
If helpful then please Like and Accept as Solution

PageFly Advanced Page Builder- My favorite drag and drop page builder - Visit the Shopify app store
0 Likes