WordPress.org

Ready to get started?Download WordPress

Forums

Delicacy
[resolved] Modify the excerpt (6 posts)

  1. ciupy
    Member
    Posted 1 year ago #

    Hi, how can i chage in the front page to be shown more excerpt? i read in wordpress documentation that the excerpt show 55 words, but the theme shows only about 20 words.

    I want to bw shown more :)

    Thanks

  2. sulaphen_mani
    Member
    Posted 1 year ago #

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

    i think this will help you

  3. sulaphen_mani
    Member
    Posted 1 year ago #

  4. alex27
    Member
    Theme Author

    Posted 1 year ago #

    If you plan on making any changes to the theme, do it via child theme. Otherwise you'll loose everything when you update theme.

  5. ciupy
    Member
    Posted 1 year ago #

    Thank You sulaphen_mani! I look into the functions file and i see that the length was to 20. i modify to 50 and it worked!

    Thank you Alex for advice. I dont know how to make a child theme, but i will be careful when i will update the theme :)

    Have a nice day both of you!

  6. sulaphen_mani
    Member
    Posted 1 year ago #

    thank you buddy . same to you. keep in mind that alex told do it in your child themes.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags