
-
AuthorPosts
-
August 11, 2021 at 7:35 pm #1316317
Hello,
I would need about twice the amount of letters from the text excerpt under the titles ind the blog grid view.
Could you please help me with the CSS?Many thanks and kind regards
Lukas-
This topic was modified 3 years, 7 months ago by
LukasEEE.
August 12, 2021 at 7:06 am #1316386Hey LukasEEE,
Thank you for the inquiry.
You can use this filter in the functions.php file to adjust the length of the masonry excerpt.
function avia_change_masonry_excerpt_length($length) { $length = 200; return $length; } add_filter('avf_masonry_excerpt_length','avia_change_masonry_excerpt_length', 10, 1);
Default length value is 60.
Best regards,
IsmaelAugust 12, 2021 at 8:23 am #1316394Hey Ismael,
when I add the code in functions.php from Enfold or Enfold Child, I get a critical error from wordpress:
Your website has a technical problem
Since WordPress 5.2, there is a built-in feature that detects when a plugin or theme is causing a fatal error on your site and notifies you with this automated email because of it.
What did I do wrong?
Kind regards
LukasAugust 12, 2021 at 11:27 am #1316411the snippet is correct but:
if you insert it to parent functions.php there are only a few places where this should be done.
i prefer as advice: just before the require_once at the very bottom.- where the comment is pointing the place:/* * register custom functions that are not related to the framework but necessary for the theme to run */ require_once( 'functions-enfold.php' );
August 13, 2021 at 1:09 pm #1316610Hi Lukas,
If you need further help with this, then please post admin WordPress login details in private, so that we can try to add the function for you. Thanks @guenni007 for helping out :-)
Best regards,
RikardAugust 14, 2021 at 8:12 am #1316718August 14, 2021 at 8:13 am #1316719Thanks for the help Rikard and @guenni007 ! :-)
August 16, 2021 at 6:44 am #1316884Hi,
Thanks for that. I’ve added the function for you, and it’s working as it should. Please note that this change will be overwritten on updates, I would recommend that you place this modification in a child theme instead: https://kriesi.at/documentation/enfold/install-enfold-theme/#why-child-theme
Best regards,
Rikard -
This topic was modified 3 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.