WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
# of characters as preview of posts on homepage (2 posts)

  1. gabrielavio
    Member
    Posted 1 year ago #

    Hi Brad,

    Thanks for the beautiful theme!

    In your demo, the three small posts have about 70 characters preview of the text. However, on my site, the number of characters is only around 50 and the third line never gets used (even if the title is only one line).
    How can I increase the number of characters that are displayed in the preview?

    Thanks for your help, Gabriela
    http://www.gabrielasteiner.com/

  2. lupi73
    Member
    Posted 1 year ago #

    hi,
    home.php
    <?php echo '<p>' . wp_trim_words( get_the_excerpt(), 45, null ) . '</p>'; ?>
    put
    <?php echo '<p>' . wp_trim_words( get_the_excerpt(), 70, null ) . '</p>'; ?>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.