Site logo

[Resolved] Different designs in Query Loop

Home Forums Support [Resolved] Different designs in Query Loop

Home Forums Support Different designs in Query Loop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2484463
    Erika

    Hi there,

    we had a converstaion in the ticket #2285122 and I had a similar client-request today.

    On the Blog page: Is there a way to change the color of the title of a listed blog post with a specific category with css? Saying, I keep the designed Query Loop and if the blog post has the category “coaching”, the dynamic content blog titel is listed “red” and not the set color? Or the background changes or however we want to style that category?

    Maybe there were some changes in the last half year 😉

    Thanks, Erika

    #2484537
    David
    Staff
    Customer Support

    Hi there,

    try this CSS;

    .gb-query-loop-wrapper .category-allgemein h2 a {
        color: #f00;
    }

    This selector: .category-allgemein change the allgemein for the term you want to target.

    #2484544
    Erika

    Hi David,

    I knew you would come up with something simple 😉 I restricted this css a bit: I assigned to the h2 a category where it should be applied, this way only on the page Termine I get another color. Wonderful, thank you!

    Erika

    #2484560
    David
    Staff
    Customer Support

    Glad to be of help!

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