• I wish to have a red background color for this post with white fonts for text and yellow for Titles. I have created a sample in Word and posted it at www.jsridhar.com/mufc.htm to explain what I need.

    I want this background only for this post. I may like to have different colors for different posts.

    Is this possible? Can anyone guide me and oblige, please?

    • This topic was modified 6 years, 6 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Each post has a unique class applied to the body, so this CSS will work

    article#post-252 .post-inner-content {
        background-color: red;
        color: #fff;
    }
    article#post-252 h1.entry-title {
        color: yellow;
    }
    article#post-252 .entry-content {
        font-weight: normal;
        color: #fff;
    }

    To add or override CSS: use the “Additional CSS” option in the customizer. https://codex.ww.wp.xz.cn/CSS#Custom_CSS_in_WordPress

    Learn to use the Chrome Developer Tools or Firefox Developer Tools to help you see and test changes to your CSS.

    See https://i.imgur.com/FiM8yC5.png

    Thread Starter jsridhar

    (@jsridhar)

    Thank you Steve for taking pains to respond. I truly appreciate it. I added the above CSS in the Post page. However, there was no change in the page. Thereafter, I searched and found a COLORS menu in the Sidebar. Using that, I could change the font and background colors. (http://www.chaiandchill.com/reddevils) But I am unable to change the Title color to yellow. The only way it can be done is by changing it globally in Sparkling Options. But the, it will change the color of the Titles in all posts which I do not want.

    Thank you, again, for taking initiative to help me.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Background colors for Posts’ is closed to new replies.