Changing the Text Color only in a Specific Text Box on the Main Product Page

Solved

Changing the Text Color only in a Specific Text Box on the Main Product Page

abmeyer1987
Tourist
7 0 2

I would like to change the text color of the BUY 2, GET 1 FREE (MIX & MATCH) line to hex #b5181d. I don't want to change any other text colors. This is the Dawn V12 theme.

 

abmeyer1987_0-1738699355157.png

 

Accepted Solution (1)

PageFly-Richard
Shopify Partner
4902 1102 1779

This is an accepted solution.

Hi @abmeyer1987 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.product section p.product__text:not(:first-child) {
color: #b5181d;
}
</style>


This won't affect other text

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 6 (6)

Made4uo-Ribe
Shopify Partner
9870 2351 2947

Hi @abmeyer1987 

PLease, share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
abmeyer1987
Tourist
7 0 2

Sure, it's americanessiactea.com.

Made4uo-Ribe
Shopify Partner
9870 2351 2947

Thanks for the info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

p.product__text.inline-richtext {
    color: #b5181d !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1738701194723.png

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
abmeyer1987
Tourist
7 0 2

When I put your code in the code editor, the vendor name AMERICAN ESSIAC TEA also changes color. Is there a way to exclude the vendor name from also changing color?

 

abmeyer1987_0-1738701619124.png

 

PageFly-Richard
Shopify Partner
4902 1102 1779

This is an accepted solution.

Hi @abmeyer1987 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.product section p.product__text:not(:first-child) {
color: #b5181d;
}
</style>


This won't affect other text

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

abmeyer1987
Tourist
7 0 2

That worked perfectly, thank you very much Richard.