OK

CSSJockey websites use cookies to give you a better user experience on our websites. Visit our Privacy and Cookie policy to get more information about cookies, including how you could opt-out.

Change WordPress Excerpt Length

You can add the following code in your theme's functions.php file to change the WordPress excerpt length. Change the number (100) to the desired leng..

published: 5 years ago

You can add the following code in your theme’s functions.php file to change the WordPress excerpt length. Change the number (100) to the desired length.

add_filter('excerpt_length', 'new_excerpt_length');
function new_excerpt_length($length) { return 100; }
 
 

pre-built solutions

Speed-up the launch of your web projects with our ready-to-use plugins, themes and widgets!

An elegant support tickets system and faqs portal for your WordPress website built with VueJS.
This content block allows you to add image , content and a button on your webpage.