Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #707402

    Hi,
    I would like to edit the length and the texts of the preview show in the blog grid. I would like it so they are all the same size. Right now one blog entry is longer than the one next to it. Ideally they are all the same and just differer by picture and content, not size.

    How could I go about doing that?

    I would appreciate your help,

    Berni

    ps: I have attached my website so you can see what I mean

    #707405

    Hey Bernhard!

    Please take a look her
    https://kriesi.at/support/topic/blog-post-excerpts-2/#post-169503

    and let us know if that works out for you.

    Thanks a lot

    Cheers!
    Basilis

    #707436

    Thank you Basilis for your fast assistance!
    However, I was not able to find the part in the Editor > Enfold: config.php (config-templatebuilder/config.php)

    Am I looking in the wrong place?

    Thanks again,
    Berni

    #708578

    Hi Berni,

    When you are in Theme Editor, just find Select theme to edit: and make sure to select Enfold. Then find config.php (there are lots of it) so make sure the config.php that you select has this below it (config-templatebuilder/config.php). Hope it helps. :)

    Best regards,
    Nikko

    #730918

    Hi,
    the described line in the post Basilis was refering to:
    https://kriesi.at/support/topic/blog-post-excerpts-2/#post-169503
    Line:
    $prepare_excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( ‘avf_postgrid_excerpt_length’ , 20) , apply_filters( ‘avf_postgrid_excerpt_delimiter’ , ” “), “…”, true, ”);

    Doesn’t exist in my (config-templatebuilder/config.php)?

    What can I do? Should I just add it?

    Thanks,
    Berni

    #731863

    Hi,

    Please edit the enfold/config-templatebuilder/avia-shortcodes/postslider.php file. Or use the following filter in the functions.php file.

    add_filter('avf_postgrid_excerpt_length','avf_postgrid_excerpt_length_mod', 10, 1);
    function avf_postgrid_excerpt_length_mod($length)
    {
       $length = 100;
       return $length;
    }

    Adjust the value as needed.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.