• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Background color on blog page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Background color on blog page

This topic is: not resolved
  • This topic has 3 replies, 3 voices, and was last updated 9 years, 9 months ago by vandxmb.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 3, 2016 at 12:49 pm #180552
    mort1m
    Member

    I'm helping a friend set up a web site using the News Pro theme. He is a guide in Poland, and drives and guides different tours. To present all the tours, I've used a blog post for each tour. For his blog overview, he's looking for alternating background colors (shifting between blue and white). But for the blog pages themselves, he'd like a white background (for all of them).

    I managed to put a CSS class in the custom post class (that makes the whole background blue of course). Is it possible to put in the same class just for the different sections / excerpts on the tour overview page? It should look like it does there now - but as said - the blog/tour pages should all have a white background.

    Thanks in advance!

    http://cracowholidays.com
    March 3, 2016 at 3:14 pm #180565
    ᴅᴀᴠɪᴅ
    Member

    If all you're wanting to do is have the alternative background colors on that one blog page, and leave each post to just be white, then you don't need to add the post class.

    just add this to your stylesheet

    .blog .entry:nth-child(2n) {
       background-color: #e5f0ff;
    }

    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    March 3, 2016 at 11:48 pm #180613
    mort1m
    Member

    Thanks for taking your time, David - that was exactly what I wanted! If possible, I would like a slight change through - how do I change the code if I'd like the first post to be the one starting with the blue background?

    March 4, 2016 at 4:40 am #180629
    vandxmb
    Member

    Thank you! I also need this issue


    Đất Xanh Miền Bắc
    Chung cư Roman Plaza Hải Phát
    Chung cư Samsora Premier 105 Chu Văn An

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble