Colouring the post background

  • Author
    Posts
  • #1635279

    How do I add a colour to the background of my posts?

    The blog I need help with is write4publish.com.

    #1635460

    Hi there, if you are wanting to put a background behind each individual post, the following CSS will do that. Add it at Appearance > Customize > CSS (after deleting all the informational text) and adjust the color code as desired.

    .content article {
        background-color: #CC0000;
        padding-left: 10px;
        padding-right: 10px;
    }

    I also noticed that the text in the “Leave a Comment” button is too dark. If you want to change it, add the following and adjust the color as desired (I used white).

    footer.entry-meta .comments-link a {
        color: #FFFFFF;
    }

The topic ‘Colouring the post background’ is closed to new replies.