[Resolved] How to underline headlines only in posts

Home Forums Support [Resolved] How to underline headlines only in posts

Home Forums Support How to underline headlines only in posts

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

    Hi,

    i would like to underline my h2 and h3 headline with a 6px high line.
    But only in the blogposts.

    I tried
    .entry-content h2 {
    border-bottom: 1px solid #7EC8D1;
    }

    but then the underline are on every page.

    Thank you,
    David

    #2145101
    Elvin
    Staff
    Customer Support

    Hi David,

    To clarify: By blog post, did you mean the headline for the actual blogs on its own single post page?

    If that’s the case, you can try adding body.single to the selector.

    Example:

    body.single .entry-content h2, body.single .entry-content h3 {
    border-bottom: 1px solid #7EC8D1;
    }

    A wise man once said:
    "Have you cleared your cache?"

    #2152295
    David

    Thank you Elvin,
    that worked very well.

    #2153375
    Elvin
    Staff
    Customer Support

    No problem. 😀

    A wise man once said:
    "Have you cleared your cache?"

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