Tagged: avia, Avia Layout Editor, Blog, blog element, excerpt, excerpt length
Hey,
I am using the Avia Blog Element on a page and want to change the excerpt length which is right now at 65 Characters including the date. How can this be accomplished? Link is below.
Hey alexandervellguth,
It should be using the default excerpt length if its set to the auto excerpt but you can override it if its changed:
http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length
Best regards,
Jordan Shannon
Thanks for reply, however this doesn’t seem to do anything. I set it to 200 and to 10 just for testing, no change at all. Purged the cache etc.
Hi alexandervellguth,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
Of course, see below.
Hi,
I added the following to functions.php:
add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
$length = 300;
return $length;
}
Adjust the 300 to whatever you need.
Best regards,
Jordan Shannon
Thanks so much!