Hi!
I already contacted events calendar support but they can’t help me either, cause they think it’s a theme thing… do you might know how to shorten the excerpt length in list view of the events page? Here:
https://www.gasthaus-halbwax.com/events/
I want the text right to the image to be cut off earlier…
Thank you!
Philip
Hey Smu88,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Basilis
it’s easy… just add this to the functions.php:
function theme_slug_excerpt_length( $length ) {
if ( is_admin() ) {
return $length;
}
return 20;
}
add_filter( 'excerpt_length', 'theme_slug_excerpt_length', 999 );
Cheers,
Philip
Hello! interesting the code of Smu88,
Is it possible to have different extract lengths for different pages?
Best regards,
Sacha
Hi Sacha,
You could try to extend the script with the is_page function for instance.
Best regards,
Rikard
Thanks, I’m not sure how to use it .. maybe I use an element other than the one indicated in this post …
I use the classic grid blog …
how do I change the length of the summary there?
I put the link private
Thank you !
Sincerly,
Sacha
Hi,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Basilis