Site logo

[Resolved] Background colour on Single post

Home Forums Support [Resolved] Background colour on Single post

Home Forums Support Background colour on Single post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2425175
    Paul

    Hi There,

    I have this CSS to update the BG Colour on archive pages

    /* Background colour on archives */
    body.archive {
    background-color: var(–grey-100);
    }

    I’d like to do the same on single posts – how do I target the single post in the CSS?
    See example URL in private info.

    Cheers
    Paul

    #2425254
    David
    Staff
    Customer Support

    Hi there,

    try:

    
    body.single-post {
        background-color: var(–grey-100);
    }

    If you want the same color for the single post and archive then you can combine the:

    
    body:is(.archive, .single-post) {
        background-color: var(–grey-100);
    }
    #2426176
    Paul

    Perfect – thank you David!

    Paul

    #2427088
    David
    Staff
    Customer Support

    You’re welcome

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