Two days ago I opened a topic about the same problem but with no response unfortunately. I really need to solve this, so again:
The category archive pages show my full blog posts in one long list (see my first private link). However, i’d like those pages to be like my main blog page, which shows a list of excerpts instead of the full posts (see my second private link). Is it possible to achieve that? On this forum I found this code, but when I add it to the functions.php of the Child theme nothing happens:
add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == 'archive') $layout = 'multi-big';
return $layout;
}
Hi DLPJRos!
Thank you for using Enfold.
Please add this in the functions.php file:
function change_blog_archive_style() {
global $avia_config;
if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; }
}
add_action('get_header', 'change_blog_archive_style');
Cheers!
Ismael
Thank you, works like a charm!