I’m wondering if it’s possible (I’d imagine this would be done in functions.php) to limit the amount of characters in a title.
When I use the ALB the title, though smaller, displays inline to the left of the breadcrumbs (see actual page example link in private view). However, on long titles, it crashes into the breadcrumb trail. So, other than creating shorter titles (this may not always be a viable option), I’m wondering if in this location it can stop after a maximum of 30 (or so) characters.
Hi laptophobo!
You can use this CSS to break it into two lines.
.main-title a {
display: block;
overflow: hidden;
width: 400px;
}
If you want to stick it to one line and just hide the rest then give it a height as well.
Cheers!
Elliott
That almost works. The overflow: hidden tag doesn’t respond though. (I did try !important tag too.)
Hi Ismael. I did. I found it was simply better to remove the title on this long one.