Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1448637

    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

    #1448728

    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:
    Enfold Support 6057
    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

    #1448786

    Thanks a lot, that helped me :)
    Can be closed.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Blog categories’ is closed to new replies.