[Resolved] Alternate post background colors

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Alternate post background colors

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2121
    Jamal
    Participant

    Hi Tom

    Struggling to get something like this working, any suggestions? Thanks !

    .wp-show-posts-inner:nth-child(odd) {
        background: #e0e0e0;
    }

    The above shows same background-color for all posts.

    • This topic was modified 3 years, 5 months ago by Jamal.
    #2124
    Tom
    Keymaster

    Try this:

    .wp-show-posts-single:nth-child(odd) .wp-show-posts-inner {
        background: #e0e0e0;
    }
    #2126
    Jamal
    Participant

    Works, thanks very much !

    #2131
    Tom
    Keymaster

    You’re welcome 🙂

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