-
AuthorPosts
-
November 2, 2016 at 10:38 pm #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
November 2, 2016 at 10:48 pm #707405Hey Bernhard!
Please take a look her
https://kriesi.at/support/topic/blog-post-excerpts-2/#post-169503and let us know if that works out for you.
Thanks a lot
Cheers!
BasilisNovember 3, 2016 at 12:03 am #707436Thank 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,
BerniNovember 5, 2016 at 7:21 am #708578Hi 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,
NikkoJanuary 8, 2017 at 10:45 pm #730918Hi,
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,
BerniJanuary 11, 2017 at 6:13 am #731863Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.