Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Style Up Titles – H2-H3

  • Hi guys,

    how can I realize that kind of styling you find attached

    https://ibb.co/nsgG5XX

    Thanks a bunch!
    Tom

  • Hi there,

    if you want to apply it to every H2 and H3 then you could use this CSS:

    
    :is(h2, h3) {
        position: relative;
        display: inline-block;
    }
    :is(h2, h3):after {
        content: '';
        position: absolute;
        inset: 0 -1ch -0.75ch 2ch;
        border-bottom: 5px solid;
        border-right: 5px solid;
        border-color: #ccc;
    }
    

    But if you want to apply it selectively then you can do:

    1. Add this CSS:

    
    .has-border-line {
        position: relative;
        display: inline-block;
    }
    .has-border-line:after {
        content: '';
        position: absolute;
        inset: 0 -1ch -0.75ch 2ch;
        border-bottom: 5px solid;
        border-right: 5px solid;
        border-color: #ccc;
    }
    

    2. select the Heading block and in Advanced > Additional CSS Classes add: has-border-line

  • quick and efficient as always, thanks David!

  • You’re welcome!

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