Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #458128

    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.

    #458578

    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

    #458607

    That almost works. The overflow: hidden tag doesn’t respond though. (I did try !important tag too.)

    #459196

    Hey!

    I checked the page but I think you removed the title.

    Regards,
    Ismael

    #459619

    Hi Ismael. I did. I found it was simply better to remove the title on this long one.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Limiting charterers of long titles’ is closed to new replies.