Plugin Support
Iris
(@iirvin)
Hi @artisanweb
Thanks for reaching out!
The Read More will only show when you don’t have an excerpt but long content on your posts/events. The Excerpt field is like a small description used for posts, so it will never add the Read More as it was written explicitly for that purpose.
To add Read More link to the event list, you can add the following code to your child theme functions.php file.
add_action( 'tribe_template_after_include:events/v2/list/event/description', function ( $file, $name, $template ) { echo "<a href=" . tribe_get_event_link() . " class='custom-btn'>Read More</a>"; }, 10, 3 );
This code is a good starting point, and you can edit it to fit your setup.
I hope this helps! If you have any other questions, please let us know.
Best regards,
Iris
Oh I see. Is there a way to set a shorter excerpt when the post (event content) isn’t very long in order to always have the read more link show? Otherwise, yes I’ll add the function.
Hello @artisanweb,
Thanks for your reply.
Yes. However, this would require a bit of customization. Please note that we can only provide limited support for customization like this per our scope of support.
Refer to this article regarding customization: https://theeventscalendar.com/knowledgebase/k/custom-development/.
Here is a list of template files for The Events Calendar. You can view our Full guide on customizations, our REST API, and our Developer Docs here – https://docs.theeventscalendar.com.
I hope that helps. Do not hesitate to reach out if you need further assistance.
Hello @artisanweb,
Awesome!
I’ll close this ticket for now, but if anything else comes up, please don’t hesitate to open a new thread; we’ll be happy to help!
If you have a moment, we would really appreciate it if you could share your feedback with others. You can leave a review for The Events Calendar here.
By sharing your experience on ww.wp.xz.cn, you’ll demonstrate the power of using The Events Calendar for event management to others. Plus, you’ll totally make our day. 😄
Either way, I’m here if any questions come up!
With gratitude,