Change Background Colour and Font of blog post

Hi there, I am wanting to change the background colour of my blog posts to white and the font to black. But I only want this changing for my blog posts and not for any other page on my website.

Does anyone know the correct code for this. FYI the ‘Inverse’ colour scheme is exactly what i want but i cannot find anywhere I can change my colour scheme.

Please help by providing the code required

hi can you please share your stores link

1 Like

Sure, the website is hairmins.co.uk

you will get this view add this code in component-card.css file.


This is the page I want changing. I would like the font in black and background colour in white.

here is the link to that page: https://hairmins.co.uk/blogs/hair-loss/the-3-best-vitamins-for-hair-growth-according-to-dermatologists

here you can add this in article.liquid

#MainContent *{ color:#000 !important; background:#fff !important; }

or if you want add in theme.liquid then use this

{% if template.name contains ‘article’ %}
#MainContent *{
color:#000 !important;
background:#fff !important;
}
{% endif %}

1 Like

Thank you! Works perfectly!!