How to make excerpts show more than 10 words. (3 posts)

  1. grafstz
    Posted 3 years ago #

    Hi All,

    I did message the creators but no reply, I wasn't sure how to make my excerpts show more than 10-12 words. I have since found out where.

    The adjustment for the home page is at content-home.php

    <div class="entry-content post_content">
            <?php echo magazino_excerpt(35); ?>
        </div><!-- .entry-content -->

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    The adjustment for category pages is at content-archive.php

    Line 13

  2. Tara
    Volunteer Moderator
    Posted 3 years ago #

    have you tried this filter:

    By default, excerpt length is set to 55 words. To change excerpt length to 35 words using excerpt_length filter, add the following code to functions.php file in your theme:
    `function custom_excerpt_length( $length ) {
    return 35;
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); `

    place it in your theme' functions.php

  3. grafstz
    Posted 3 years ago #

    I found excerpt limit code in both content-home and content-archive.

    This was what I was looking for so I copied those files into my child theme and made adjustments.

    Is your functions statement more efficient?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.