-
AuthorPosts
-
May 21, 2014 at 10:31 pm #268260
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
May 21, 2014 at 10:59 pm #268285Hey!
Try this:
http://matthewfecher.com/webdesign/wp-quick-tip-how-to-change-the-excerpt-length/Cheers!
JosueMay 22, 2014 at 12:21 am #268361Hi 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,
ShelleyMay 22, 2014 at 12:44 am #268363Hi,
Can you post a link to your website please?
Regards,
JosueMay 22, 2014 at 1:23 am #268380May 22, 2014 at 1:24 am #268381Hi!
A coming soon page is displayed.
Cheers!
JosueMay 22, 2014 at 1:26 am #268382Sorry 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?
May 22, 2014 at 1:34 am #268385I can’t do that, if you say you switched it off maybe it’s a matter of time, i’ll try later.
Cheers!
JosueMay 22, 2014 at 1:37 am #268386Ok I tested it, should be visible now.
May 22, 2014 at 1:47 am #268389Hi,
Can you create me an administrator account? post it here as a private reply.
Regards,
JosueMay 22, 2014 at 1:51 am #268394This reply has been marked as private.May 22, 2014 at 4:01 am #268421Hi!
Please update the theme to the latest version of Enfold (2.7.1).
Cheers!
JosueMay 22, 2014 at 5:18 am #268440This reply has been marked as private.May 22, 2014 at 7:32 am #268453Hi!
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,
PeterMay 22, 2014 at 7:53 am #268462Hi,
Just tried and it doesn’t seem to have any effect.Shelley
May 27, 2014 at 12:49 pm #270486Hey!
Where exactly did you add the function in? I don’t see it in your currently live functions.php file.
Cheers!
DevinAugust 12, 2014 at 6:56 pm #303378Hello, this code is also not working for me. I placed it in my child functions file. Any ideas?
Thanks.August 12, 2014 at 7:13 pm #303382Nevermind… it must have been caching. Works now.
-
AuthorPosts
- The topic ‘longer excerpt’ is closed to new replies.
