Limiting characters in futured content

  • Author
    Posts
  • #119706

    dertalmid
    Member

    Hi,
    There is an object class=”entry-excerpt”, how can I control the number of characters displayed. I tried using css code:
    .entry-excerpt {
    overflow: hidden;
    white-space: pre-line;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 50ch !important;
    }

    however it does change the size, but doesn’t change the number of characters displayed. I need two lines of text

    Thank you

    The blog I need help with is dertalmid.wordpress.com.

    #119899

    lelandf
    Theme Author

    Hi there,

    I would try to use max-height instead of max-width. Limiting the height is the only way you can guarantee how many lines there will be.

    Regards,
    Leland

The topic ‘Limiting characters in futured content’ is closed to new replies.