Re: How can I change text color for ONLY one heading?

Solved

How can I change text color for ONLY one heading?

lflounge
Tourist
11 0 4

I want CRITICAL: YOU MUST COMPLETE ALL STEPS IN YOUR ORDER CONFIRMATION EMAIL FOR ACCESS TO VIP PERKS! CHECK YOUR SPAM FOLDER IF YOU DO NOT SEE THAT EMAIL. to be red, but not all h2 or anything else...there must be a way?:

"rich_text_bhg7pN": {
"type": "rich-text",
"blocks": {

"heading_Nc4eM4": {
"type": "heading",
"settings": {
"heading": "CRITICAL: YOU MUST COMPLETE ALL STEPS IN YOUR ORDER CONFIRMATION EMAIL FOR ACCESS TO VIP PERKS! CHECK YOUR SPAM FOLDER IF YOU DO NOT SEE THAT EMAIL.",
"heading_size": "h2",
}
}
},
Accepted Solution (1)
niraj_patel
Shopify Partner
2378 514 506

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
   #shopify-section-template--14530783772723__rich_text_bhg7pN .rich-text__blocks h2.h2 {
        color: red !important;
   }
</style>

niraj_patel_0-1724210687321.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 7 (7)

AnneLuo
Shopify Partner
1045 197 220

Hi, @lflounge 

Change your code and try again

"heading_Nc4eM4": {
  "type": "heading",
  "settings": {
    "heading": "<span style='color: red;'>CRITICAL: YOU MUST COMPLETE ALL STEPS IN YOUR ORDER CONFIRMATION EMAIL FOR ACCESS TO VIP PERKS! CHECK YOUR SPAM FOLDER IF YOU DO NOT SEE THAT EMAIL.</span>",
    "heading_size": "h2",
  }
}


Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

lflounge
Tourist
11 0 4

Thank you for the idea, but it made this happen:

lflounge_0-1724210275177.png

 

niraj_patel
Shopify Partner
2378 514 506

Hello @lflounge 

please share store URL and share screen shot where this section located.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
lflounge
Tourist
11 0 4
niraj_patel
Shopify Partner
2378 514 506

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
   #shopify-section-template--14530783772723__rich_text_bhg7pN .rich-text__blocks h2.h2 {
        color: red !important;
   }
</style>

niraj_patel_0-1724210687321.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
lflounge
Tourist
11 0 4

Thank you so much that worked perfectly and I NEVER would have figured that out!

BSSCommerce-HDL
Shopify Partner
2305 833 906

Hi @lflounge 

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
        .rich-text__blocks h2 {
            color:red!important;
        }
    </style>

Here is result:

BSSCommerceHDL_0-1724210778069.png

 

 

Hope this can help you, If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now