Support » Theme: Leaf » # of characters as preview of posts on homepage

  • 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/

Viewing 1 replies (of 1 total)
  • 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>'; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘# of characters as preview of posts on homepage’ is closed to new replies.