Changing colors to dynamically set content

Changing colors to dynamically set content

nathanc1
Tourist
5 0 1

I am trying to set the font color of the highlighted section to red, however these product descriptions are dynamically set with metafields so it's not that straight forward. 

nathanc1_0-1675149724629.png

The code below is how it is being setup is there a way that this can be done? even if its done hard coded where if block.settings.content== "free exchange on your 1st purchase for all dog items" then set the color to red. 

nathanc1_1-1675149795307.png

 

Would appreciate some assistance on the matter

Replies 3 (3)

Moeed
Shopify Partner
7073 1903 2331

Hey @nathanc1 
Can you share your store URL?

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


nathanc1
Tourist
5 0 1
Moeed
Shopify Partner
7073 1903 2331

This data might be on your Shopify admin page instead of coding. Try the following method.

 

  1. Go to your Shopify Admin page.
  2. Click on Online Store
  3. Click on Themes
  4. Click on Customize
  5. Then Click any product and in those settings you might find that data.

 

If that doesn't work then let me know in inbox I can gladly help you personally.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications