How do you split text into two different colors

How do you split text into two different colors

Shay751
Tourist
7 0 0

Hi!

 

I am using the Rich text section on the free spotlight theme on the product page.

 

I want to change the first part of the slogan to a different color (e.g orange) and the rest of the text black. 

 

I have some extremely basic coding skills but can this not be done in the CSS block on the theme editor?

 

Thanks

Replies 3 (3)

DaisyVo
Shopify Partner
2542 317 368

Hi @Shay751 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

h2.rich-text__heading {
    color: red !important;
}
.rich-text__text {
    color: yellowgreen !important;
}

 

Here is the result: image_720.png

 

I hope this helps

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Shay751
Tourist
7 0 0

Hi there,

 

Thank you for the response.

 

Perhaps I didn't word it correctly, I only need to change the color of the headline text split into two different colors.  See example below

 

Like This

 

Hope that makes it more clearer on the help needed, thanks!

DaisyVo
Shopify Partner
2542 317 368

Hi @Shay751 

 

In that case, let me know exactly where you want to edit.

Take a screenshot of the specific section and share the link to the page if it’s not on the homepage. This will help me check the code to see if it’s editable.

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution