How can I change the font colour for H2 titles in blog posts?

Solved

How can I change the font colour for H2 titles in blog posts?

SarahTinySteps
Excursionist
34 0 6

Hi Guys

 

I didn't manage to get a response so I'm posting this again in the hope someone can help. I would like to change the Font Colour for my H2 Titles in my Blog posts (only) and wondered if someone could share some code for me to do this please?

 

Here is an example of a blog post

 

https://tinystepskids.co.uk/blogs/newborn-baby-products/wooden-safari-train-set

 

Thanks so much in advance!

Best

S

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
6884 1640 2025

This is an accepted solution.

You didnt try to add some color on the h2?

Like this. 

Made4uoRibe_0-1699260643281.png

If it doesnt work add the !important.

Made4uoRibe_1-1699260693883.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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
6884 1640 2025

Hi @SarahTinySteps 

Try this one.

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • 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:

 

article.article h2 {
    color: red !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1699224350417.png
  • Note: You can change the color you want. 

 

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
SarahTinySteps
Excursionist
34 0 6

Hi there

 

Thanks so much for taking time to help. That didn't work unfortunately. We are using the Impulse theme and under assets we have the theme.css.liquid.

 

I have added a snippet to show you where we added it but nothing changed on the blog. You can see from the snippet I have already changed the H1, H2, H3 sizing for the Blog posts which worked fine but the colour code you provided didn't change the H2 heading colours....

 

Any other ideas?Capture.JPG

Made4uo-Ribe
Shopify Partner
6884 1640 2025

This is an accepted solution.

You didnt try to add some color on the h2?

Like this. 

Made4uoRibe_0-1699260643281.png

If it doesnt work add the !important.

Made4uoRibe_1-1699260693883.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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
SarahTinySteps
Excursionist
34 0 6

Worked perfectly! Thank you sooooo much.