-
james

I want to set the maximum number of characters for the title. What should I do?
-
David
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 change2. Add this CSS to your site:
.line-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } -
james
Oh my god!! It was a very difficult problem, but it was solved easily Thank you so much.
-
David
Glad to be of help!
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.