Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #675324

    Hi there,

    I am new on this forum. I have searched for more than a hour, but didn’t find an useful answer. So here is my (first) question:

    Is there a way to shorten the text and get “read more” in the list view of The Events Calendar? I have some events with a lot of text and would love to shorten that on the list view page. For example: https://djbastiq.com/events/list/?tribe_paged=1&tribe_event_display=past

    The event: “DJ BastiQ at Town Hall Party – DJ Clubnight”

    I have already placed <!–more–> in this event. But it still shows all the text.

    What can I do? (I have installed a child template)

    Best regards, Jack.

    #676652

    Nobody??

    #676734

    Hi,

    Thank you for using Enfold.

    Please add this in the functions.php file to decrease the number of allowed characters in the excerpt:

    // events excerpt
    add_filter( 'excerpt_length', 'avf_excerpt_length', 10, 1);
    function avf_excerpt_length($excerpt) {
    	return 20;
    }
    

    And please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.

    Best regards,
    Ismael

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