-
AuthorPosts
-
April 3, 2019 at 5:54 pm #1086638
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
April 7, 2019 at 4:19 pm #1087989Hey 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,
BasilisApril 7, 2019 at 4:20 pm #1087990it’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
April 8, 2019 at 9:43 am #1088204April 10, 2019 at 10:06 am #1089051Hello! interesting the code of Smu88,
Is it possible to have different extract lengths for different pages?Best regards,
SachaApril 11, 2019 at 8:40 am #1089455Hi Sacha,
You could try to extend the script with the is_page function for instance.
Best regards,
RikardApril 12, 2019 at 8:21 am #1089943Thanks, 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,
SachaApril 16, 2019 at 3:53 pm #1091469Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.
