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 t...

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!

This block showcases counter for any type of content that you can customise according to your website’s requirement. T...
This WordPress Plugin allows you to display WordPress login, register, reset password and edit profile forms on your Wor...