-
AuthorPosts
-
January 14, 2019 at 11:19 pm #1053863
Hi
How can I add more words to the excerpt for the blogpost on my main page? I have used the “Blog posts” option to get them displayed on the front page but I think the excerpt length is way to short.Thanks
Elisabeth
-
This topic was modified 6 years, 10 months ago by
Elisabethkaasa.
January 15, 2019 at 10:06 am #1054032Hey Elisabeth,
Can you try to add this code in functions.php:
function av_custom_excerpt_length( $length ) { return 80; } add_filter( 'excerpt_length', 'av_custom_excerpt_length', 999 );Just replace 80 (words) with any number, just increase or decrease it as you like.
Best regards,
NikkoJanuary 17, 2019 at 11:23 am #1054937Dear support how can i set lenght of excerpt of Blog list visualiztion?
I used this class of list “bloglist-excerpt”.Thanks
January 18, 2019 at 4:41 pm #1055502Hi sitebysite,
I think your using Blog Posts just a different translation.
Can you try the code I gave? that should adjust the length of the excerpt.Best regards,
NikkoJanuary 18, 2019 at 6:05 pm #1055561It works.
Thanks so muchJanuary 19, 2019 at 5:45 pm #1055911Hi sitebysite,
Glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
NikkoApril 22, 2019 at 12:31 pm #1093316Hi
I am not getting this function to work.
Is this the function to insert?:
}
function av_custom_excerpt_length( $length ) {
return 80;
}
add_filter( ‘excerpt_length’, ‘av_custom_excerpt_length’, 999 );I am getting various error messages (Unexpected tokens)
Regards
ElisabethApril 23, 2019 at 7:32 am #1093537 -
This topic was modified 6 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
