WordPress.org

Forums

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

  1. 213edu
    Member
    Posted 1 year 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 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.