WordPress.org

Forums

Flat Bootstrap
[resolved] Preview word count (3 posts)

  1. 213edu
    Member
    Posted 8 months ago #

    Hi great theme here,
    just wondering is there a way to limit the word count of preview on the main page? I want to reduce it to like only 10 words on the preview

  2. gWorldz
    Member
    Posted 8 months ago #

    You might try adding ...

    function xsfb_excerpt_length( $length ) {
    	return 10;
    }
    add_filter( 'excerpt_length', 'xsfb_excerpt_length' );

    ... to your functions.php

  3. Tim Nicholson
    Member
    Theme Author

    Posted 8 months ago #

    gWorlds, I believe that is exactly what 213edu was looking for. I'll mark this topic as resolved.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.