Change post background color and h2 background color

Posted in: Newspaper
Post count: 76

Hi,
I spend time for find solution for change post and h2 background color, i don’t find solution on forum then i want to share my solution because i see same question without response.

Then if you want to change post background color, you can put this inside your custom css :

.td-post-content  {
    background:#f2f2f2;
    padding: 20px 20px;
}

And for h2 background color :

h2 {
    margin: 20px 0;
    background:#DCDCDC;
    padding: 10px 8px;
}

I use font fjalla one

And the result :

postimage

Post count: 76

I just find another way, better for make h2, h3, h4 with different background :

.td-post-content h2 {
margin: 20px 0px;
background:#DCDCDC;
padding:10px 8px;
}

With the other code all h2 and h3 are modified, in block module and other, with this code only post are modified.

Post count: 76

If you want to see final result exemple:
https://toutelathailande.fr/que-faire-a-chiang-rai-guide-des-activites-et-des-visites-dans-la-ville-et-la-province/

It’s not perfect because it reduce the space of post, but it make very clean and beautiful post!

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.