WordPress.org

Ready to get started?Download WordPress

Forums

Supernova
[resolved] Shorter excerpts (4 posts)

  1. Ireilas
    Member
    Posted 8 months ago #

    Hey,
    first of all thanks for the great theme!

    I need shorter excerpts for latest posts, etc.
    Before I ruin something in the files, since I can not find the place, I prefer to ask for.
    Is it possible to change the length of the excerpts? If so, where?

    Thanks!

  2. Sayed Taqui
    Member
    Theme Author

    Posted 8 months ago #

    I have added that option in the next version which should be available soon however if you are in hurry , you can do it now. Paste this in your functions.php file

    add_filter( 'excerpt_length', 'Ireilas_custom_excerpt_length', 999 );
    function Ireilas_custom_excerpt_length( $length ) {
    	return 20;
    }

    20 is the number you would like to change. That's number of Words.

  3. Ireilas
    Member
    Posted 8 months ago #

    Wow, thanks for the quick reply!
    It's great that the option will appear in the next version. Then I'll remove the new code again.

  4. anu.healthykitchen
    Member
    Posted 4 months ago #

    is your next version released?? I would also like change the excerpt length and not comfortable much to use code.

Reply

You must log in to post.

About this Theme

About this Topic