[Resolved] Making changes to Category entry without making changes to the entire Article?

Home Forums Support [Resolved] Making changes to Category entry without making changes to the entire Article?

Home Forums Support Making changes to Category entry without making changes to the entire Article?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #443139
    Chris

    So I’m in a bit of a bind here. I’m trying to figure out how to change (say, for example) the background color of the entire ‘inside-article’ div to the Category post, without it changing the background color for the entire post when you click into it.

    I’m trying to create a custom layout for my categories, but I can’t find out how to do that without altering the entire post.

    Here’s links to the pages in question, in case you’re curious. I’ve colored them both red for the sake of understanding, but the idea is to only have the CATEGORY background be red, not both.

    https://onemorecast.io/category/episodes/
    https://onemorecast.io/ep9-video/

    #443243
    Leo
    Staff
    Customer Support

    Hi there,

    So you want the category background to be a different color than the single posts?

    If so we need to use CSS:

    .category .inside-article {
        background-color: red !important;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #443262
    Chris

    Yeah exactly! So with the .category selector I can make changes to only category pages- that’s exactly what I was looking for 😀

    #443356
    Leo
    Staff
    Customer Support

    No problem!

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