Site logo

[Resolved] css code to add highlight to archive post titles

Home Forums Support [Resolved] css code to add highlight to archive post titles

Home Forums Support css code to add highlight to archive post titles

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2575595
    James

    Hi, I have added a half-height highlight to H1 headings, I want to do the same to archive content titles (which are h2) but I don’t want to do all H2 headings. What CSS code do I use to specify archive content titles?

    This is what I did for H1 headings:
    h1 {
    background: linear-gradient(180deg, rgba(255,255,255,0) 65%, #FFABB2 50%); display: inline;
    }

    Thanks,
    James

    #2575792
    David
    Staff
    Customer Support

    Hi there,

    titles on the archive page are given the entry-title class so:

    h2.entry-title is the selector you need.

    #2575890
    James

    Great, that works perfectly. Thanks!

    #2576485
    David
    Staff
    Customer Support

    Glad to hear that!

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