WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. grafstz
    Member
    Posted 10 months 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
    Member
    Posted 10 months 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
    http://codex.wordpress.org/Function_Reference/the_excerpt

  3. grafstz
    Member
    Posted 10 months 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?

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.