Background color in post pages and sidebar

This topic has 4 replies, 2 voices, and was last updated 5 years, 5 months ago ago by Olga Barlow

  • Avatar: cha
    cha
    Participant
    June 4, 2019 at 02:09

    Hi
    Can you please help me how to add a box white background in post articles, pages article and sidebar but leave the color of the theme only a box background color underneath post pages and sidebar. I am using the underwear template.
    Thanks

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 4, 2019 at 09:26

    Hello,

    Are you talking about container color? http://prntscr.com/nxcypa http://prntscr.com/nxczgr

    Add the following code to child theme style.css

    .content-page, .page-content {
        background: #fff;
        padding: 35px;
    }

    Regards

    Avatar: cha
    cha
    Participant
    June 4, 2019 at 14:58

    Thanks for the reply.

    How about I want it on the post articles only because adding the white container background in the pages will also affect the home page of the site.

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 4, 2019 at 15:10

    Hello,

    Then use the following code instead of the previous one

    .blog .content-page, .category .content-page, .single .content-page {
        background: #fff;
        padding: 35px;
    }

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.