Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #1087989

    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

    #1087990

    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

    #1088204

    Hi Philip,

    Thanks for sharing, much appreciated!

    Best regards,
    Rikard

    #1089051

    Hello! interesting the code of Smu88,
    Is it possible to have different extract lengths for different pages?

    Best regards,
    Sacha

    #1089455

    Hi Sacha,

    You could try to extend the script with the is_page function for instance.

    Best regards,
    Rikard

    #1089943

    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

    #1091469

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.