Tagged: excerpt
Hi,
how can I increase the excerpt lenght in the blog fullwidth masonry?
thanks
Hey cmaifre!
You can use the “excerpt” field on the post editor page to insert a custom excerpt text or use following code to change the length of the generated excerpt:
add_filter('avf_masonry_excerpt_length','avia_change_masonry_excerpt_length', 10, 1);
function avia_change_masonry_excerpt_length($length)
{
$length = 100;
return $length;
}
Insert the code at the bottom of functions.php and replace 100 with any other custom value. Kriesi uses an excerpt length of 60 by default.
Cheers!
Peter
I have the same question, but for the blog slider shortcode. How can I alter excerpt length there?
Hi @Easy123!
Try with this code:
add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
$length = 100;
return $length;
}
Cheers!
Josue