[Resolved] Change h2 font from single posts only

Home Forums Support Change h2 font from single posts only

  • This topic has 3 replies, 2 voices, and was last updated 1 year ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1020517
    Hilton

    Hi,

    I’d like to know what CSS can be used to change h2 inside single post content (not affecting homepage, archives pages and sidebar widget titles).

    I’ve tried .single-post h2, .single-post .h2 {} but it changed widget titles too, and I only want to change the heading h2 inside posts content.

    Thanks

    #1020523
    David
    Staff
    Customer Support

    Hi there,

    try .single-post .entry-content h2

    #1020557
    Hilton

    Hi David,

    I used the following css and it worked 🙂

    Thanks

    .single-post .entry-content h2 {
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 32px !important;
    }

    #1020567
    David
    Staff
    Customer Support

    Nice 🙂 Glad to be of help

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