calendar – text preview "find out more/read more"

Home Forums Calendar Products Events Calendar PRO calendar – text preview "find out more/read more"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1082158
    Stefan
    Participant

    Hey!

    Is it possible to insert a “read more/find out more”- link in the event-preview.
    http://www.dog-cooperation.at/events/2016-03/
    There is too much text in the preview, so that is annoying because you have to scroll always.
    Or is there a way to shorten the experts length.

    Thank you!

    #1082401
    Geoff
    Member

    Howdy Stefan!

    Good question. The excerpt length for events uses the same excerpt length as other default posts, so you could like use a filter to override the default number of words returned. Something like this in your theme (or child theme) functions.php file:

    function custom_excerpt_length( $length ) {
    return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    That will limit the number of words to 20, though you can set that to whatever you’d like.

    Will this work for you? Please let me know. 🙂

    Cheers,
    Geoff

    #1085815
    Stefan
    Participant

    Hey Geoff,

    thanks for your reply. It works very well! Thank you!
    Do you know if it is possible to display the read more button or the “[…]” automaticly?

    Thank you and best wishes,
    Stefan

    #1086802
    Geoff
    Member

    Hey Stefan,

    Awesome, so glad that helps, Stefan!

    The Read More and ellipses likely depend on your theme functions more than anything else. I think the best place to read up on customizing those would be here in the WordPress Codex or by reaching out directly to the theme author.

    Thanks again for reaching out and please feel free to hit us with another thread if any other questions about events pop up–we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘calendar – text preview "find out more/read more"’ is closed to new replies.