Support » Theme: Munsa Lite » change excerpt length

  • florian99


    Currently the excerpt length is 55 words. In which file can I change this to a different number?


Viewing 1 replies (of 1 total)
  • Subrata Sarkar


    Inside your theme’s functions.php file, write this:

    function custom_excerpt_length( $length ) {
       return 20; // you can use any integer per your requirement.
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.