Hello,
Is there a way I can have longer automatic excerpts? On my home page I’m using a blog post content element with grid layout, including Title and Excerpt + Read More Link. I would like the excerpt length to be about 100 characters.
Thanks
Hey!
Try this:
http://matthewfecher.com/webdesign/wp-quick-tip-how-to-change-the-excerpt-length/
Cheers!
Josue
Hi Josue,
Thanks for the reply. I tried this but it didn’t seem to have any effect. It’s only on the grid layout blog posts that they are very short. They are longer on the other blog layout.
Thanks,
Shelley
Hi,
Can you post a link to your website please?
Regards,
Josue
Hi!
A coming soon page is displayed.
Cheers!
Josue
Sorry I took switched that off but it’s still showing. Are you able to send me your IP and I’ll add it to my view list?
I can’t do that, if you say you switched it off maybe it’s a matter of time, i’ll try later.
Cheers!
Josue
Ok I tested it, should be visible now.
Hi,
Can you create me an administrator account? post it here as a private reply.
Regards,
Josue
Hi!
Please update the theme to the latest version of Enfold (2.7.1).
Cheers!
Josue
Hi!
Insert this code at the very bottom of the child theme functions.php file (or enfold/functions.php if you’re not using a child theme)
add_filter('avf_postgrid_excerpt_length','avf_increase_postgrid_excerpt_length', 10, 1);
function avf_increase_postgrid_excerpt_length($prepare_excerpt) { return 60; }
and replace 60 with your custom except length (i.e. 120). The default length is 60.
Regards,
Peter
Hi,
Just tried and it doesn’t seem to have any effect.
Shelley
Hey!
Where exactly did you add the function in? I don’t see it in your currently live functions.php file.
Cheers!
Devin
Hello, this code is also not working for me. I placed it in my child functions file. Any ideas?
Thanks.
Nevermind… it must have been caching. Works now.