Text Variable font Size

Hi,

1 - I need to add a text everytime the compared price is triggered, to show the end date of the promotion.
I manage to do it. Correct the code if its not right. But i need to make the font smaller how can i do it?

Template - price.liquid

After this template code:

{% if for_variant_picker or compare_at_price > price -%}

{%- if compare_at_price > price -%}

{{- compare_at_price | money -}}

I wrote mine:

&nbsp

{%- assign tempo_promo = " 30/04/2024" %}
{{ tempo_promo }}

im trying to reduce the font but im no expert and i dont know the language, is it something like this?

.tempo_promo { font-size: 10px; }

2 - Plus is it possible to create a metafield which everytime it has content and the price is triggered it will show the content after the compared price?

Thank you,

Hey @Colipo ,

Do this instead

{%- assign tempo_promo = " 30/04/2024" %}

{{ tempo_promo }}


Now you should be able to change the font size.

You can create a metafield and then instead of

{{ tempo_promo }}   

You can add the metafield instead

{{ custom.metafield.x.y.z }}
1 Like

Thank you so much!

How can i write this code so it dosent give a paragraph?

{{ tempo_promo }}