Re: font color

Solved

How can I change the font color of a dynamic metafield on my product page?

DawnHazel
Tourist
17 0 1

Hi,

 

I have added a dynamic metafield to my product page (product.metafields.custom.instlang). It is displaying correctly but I want to change the font color to make it more visible. What is the best way of doing this?

 

Regards

Dawn (I am also using the Dawn theme 🙂

Accepted Solution (1)

SomeUsernameHe
Shopify Partner
520 58 113

This is an accepted solution.

You can wrap it with a span and give that span a color.

 

<span style="color: red;">{{ product.metafields.custom.instlang }}</span>

 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee

View solution in original post

Replies 5 (5)

Natasha-Saed
Shopify Partner
466 51 87

Can you share your store url and an image which part you want to change the color for to be able to assist you.

If my solution helped you don't forget to accept it to help others.
===================================================================
And if you really like my support share a cup of coffee with me paypal.me/freemindsint

SomeUsernameHe
Shopify Partner
520 58 113

This is an accepted solution.

You can wrap it with a span and give that span a color.

 

<span style="color: red;">{{ product.metafields.custom.instlang }}</span>

 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
DawnHazel
Tourist
17 0 1

Thanks Drew. I bought you a coffee 🙂

SomeUsernameHe
Shopify Partner
520 58 113

Aw, thank you! I truly appreciate that! If you have any further questions do not hesitate to ask.

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
MMO1
Shopify Partner
49 0 10

Hi, where did you implement the <span style>? The metafield itself doesn't support HTML and the display section also doesn't support it