How can I change the color of this Text?

Topic summary

A Shopify user needs to change the color of two specific words on their site.

A helper provides a CSS solution targeting the .sale-message class to change the text color to red. The code snippet needs to be added to the theme.liquid file within <style> tags before the <body> tag.

When the original poster struggles to locate the body tag, the helper provides detailed step-by-step instructions with screenshots:

  • Navigate to Online Store β†’ Themes β†’ Three dots menu β†’ Edit code
  • Open the theme.liquid file
  • Scroll down to find the <body> tag
  • Insert the CSS code in <style> tags above it

The original poster thanks the helper for their assistance. The discussion appears resolved with the solution provided, though no explicit confirmation of successful implementation is given.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hello guys, how can I change the color of only these 2 words.

1 Like

hey @NikosBat share the URL of your website so i can help you
and if there is password then share it

.sale-message {
    color: red;
}

Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the tag before the body ----->
if this code work please do not forget to like and mark it solution

1 Like

Hey MustafA16 and thanks for your answer, how can I find the body part, could not find it :confused:

1 Like

hey @NikosBat follow these steps

then

open the three dots then

open the edit code then

open the theme.liquit file then

then scroll down and find the body tag

then place this code


now if i managed to help you then don’t forget to like and mark it solution

1 Like

Thanks for your time and help MustafA16