Hi,
I have this code in my functions.php
add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == 'archive') $layout = 'blog-grid';
return $layout;
}
It works well. Can I adjust the length of the preview text and how many blog-entries will be displayed on one page?
https://www.yvonnefothe.de/category/eifersucht/
Best regards
Hey northorie,
To change how may items are shown on each page go to WordPress ▸ Settings ▸ Reading ▸ Blog pages show at most and change the number:
To change the excerpt length, add this code to the end of your child theme functions.php file in Appearance ▸ Editor:
add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
$length = 60;
return $length;
}
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Please note that this is for characters including spaces, and if your posts are using manual excerpts then this won’t work, you will need to adjust the manual excerpts instead.
Best regards,
Mike
Thanks a lot, that helped me :)
Can be closed.