Can I add an emoji to a text single line meta field?

Hi,

is it possible to add to a text single line - meta field an emoji?
I have some products which I can send just to US and Canada (I followed therefore the advise from @Hrag : https://community.shopify.com/c/payments-shipping-and/re-how-to-restrict-shipping-countries-on-certain-items/td-p/600682)

The customer can select during checkout now just US or Canada. But I would like to highlight/ show it within the product, in best case in the same line of the delivery time.

Any advise how to do?

Thank you in advance

@DaveD

Hello we don’t understand the requirement what you want?

please tell me detailed of your requirements. then we will able to help you implement that think?

I think You want to a product metafield for the delivery in US and Canada? am i right?

Indeed it’s not clear, now when I read it again. Seems I even can’t edit a post here?!

anyway, i wanted to add an emoji of the country flag to the description/ meta field.

:united_states: :canada:

You want to automated flag emoji by coutry US/canada.

It doesn’t have to be automated. I’m already good with copying and pasting the flags into the field or adding a code somewhere.

@DaveD

You can use the SVG for Flag of Canada and US

we will provide the svg of both flags.

1 Like

I see, SVG was the keyword.

Ok with this hint, I could follow the below guide and managed it:

https://www.identixweb.com/how-to-display-images-using-shopify-metafields-in-your-store/

just one thing is a bit strange, I uploaded images in different resolutions (like 150x40 or 300x80) but the size on the page doesnt change at all. Its rather a bit tiny I would say. Any chance to make it bigger?
With the image tag/ size it doesnt work..

another problem now, products which doesnt have this svg/ image in the metafield will be shown as:

any chance to remove this image, if the metafield doesnt include an image?

give us the page URL