Horje

Tips (Total 1)


# Tips-1) How to change the length of excerpt

By default all excerpts are capped at 55 words. Utilizing the code below you can override this default settings:

Function to change the length of excerpt

Just copy and paste following codes to yourdomain.com/wp-content/themes/activated-theme/fucntions.php in the most below.

Example: PHP
function new_excerpt_length($length) { 
    return 100;
}

add_filter('excerpt_length', 'new_excerpt_length');

This example changes the excerpt length to 100 words, but you can use the same method to change it to any value.


Share on: