Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Blog Post Content Color

  • Hey team,

    I have given my website a dark background colour, using Customizer > Colour > Content. This is great for most of the website, but I want my Blog Posts and the Blog Archives to have a White Background.

    I’ve tried this CSS, but it makes the entire website background go white and I only want the Posts white.

    .inside-article {
      background-color: #FFFFFF; 
    }
    

    And this;

    body.archive .content-area, 
    body.is-singular .content-area {
      background-color: #FFFFFF; 
    }

    How do I give the Blog Posts a different Content Background Colour to the rest of the website.

    Thanks

  • Hi there,

    Try this CSS:

    body.single-post .site-content,
    body.archive .site-content {
      background-color: #ffffff;
    }
  • Thanks Alvind, that’s it.

  • You’re welcome!

  • So sorry,
    I have just checked the Archive page and it hasn’t changed the background to white. The single posts have worked, but the archive / news page still has the black background?

    body.single-post .site-content,
    body.archive .site-content {
      background-color: #ffffff;
    }

    Thanks

  • I think I resolved this by reconfiguring background settings.

  • Great to hear that, let me know if there is any other issues 😁

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