Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #739463

    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;
    }
    
    #740120

    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

    #740137

    Thank you, works like a charm!

    #740494

    Hi!

    No problem. Let us know if you have more questions.

    Regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change layout of category pages’ is closed to new replies.