Tagged: yigit
-
AuthorPosts
-
September 14, 2015 at 5:58 pm #502953
I previously had these filters in my child functions.php file and they were working perfectly:
add_filter(‘avf_magazine_excerpt_length’,’avf_magazine_excerpt_new_lenght’, 10, 1);
function avf_magazine_excerpt_new_lenght($excerpt) {
$excerpt = 330;
return $excerpt;
}add_filter(‘avf_postgrid_excerpt_length’,’avia_change_excerpt_length’,10,1);
function avia_change_excerpt_length()
{
return 175;
}After updating to the latest version of Enfold the filters do nothing in my parent or child theme functions.php folders. Can you tell me what I am doing wrong? I have tried making changes both in my Editor dashboard and in CPanel.
I would greatly appreciate any of your guidance!
September 15, 2015 at 2:16 pm #503350Hey trinawelzlpc!
I have added codes to functions.php file of your child theme and they are working fine. Please review your website now.
Edit: I also added a private “test” post, category and pageCheers!
Yigit- This reply was modified 9 years, 2 months ago by Yigit.
September 15, 2015 at 8:44 pm #503680Hi Yigit,
Thank you for taking a look! I have reviewed the website and my magazine filters are still not working. The posts on the homepage should display not just the post image and title but also an excerpt (330 characters). Thanks for your help!
DanielSeptember 16, 2015 at 12:18 pm #503967Hi!
Please refer to Peter’s post here – https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list/#post-259924
then move modified element to your child theme – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/Cheers!
YigitOctober 14, 2015 at 7:15 pm #518892Thank you, Yigit. This works but only if I select “Should the first entry be displayed bigger” checkbox. I do not want the first entry to be bigger but when I disable this the excerpts go away. Is there a way to get the excerpts without that first entry being bigger?
Thanks again!October 14, 2015 at 11:26 pm #518980I also noticed that when the excerpts are displayed it changes my thumbnails so that some of them are cropped into the top part of the thumbnail frame. Any ideas on how to avoid this? Thanks!
October 16, 2015 at 6:56 am #519679Hi!
Please undo the modification then look for this code:
if(empty($this->atts['thumbnails'])) { $image = ""; $extraClass = "av-magazine-no-thumb"; }
Below, add this:
$excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_magazine_excerpt_length' , 10) , apply_filters( 'avf_magazine_excerpt_delimiter' , " "), "…", true, '');
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.