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.

Maximun Title Length

  • I want to set the maximum number of characters for the title. What should I do?

  • Hi there,

    trimming the title to an exact number of characters can be tricky. Its easier to fix the total number of lines on show, which will keep it more responsive. If thats an option then do this:

    1. Edit that Query Loop block, and select the Headline block with the title.
    1.1 In the block settings Advanced -> Additional CSS Classes add a CSS class; line-clamp
    1.2 save that change

    2. Add this CSS to your site:

    .line-clamp {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
  • Oh my god!! It was a very difficult problem, but it was solved easily Thank you so much.

  • Glad to be of help!

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