Home › Forums › Calendar Products › Events Calendar PRO › Upcoming Event Content in Widget
- This topic has 5 replies, 4 voices, and was last updated 9 years, 1 month ago by
Christine Cobb.
-
AuthorPosts
-
February 14, 2017 at 12:08 pm #1234771
Christine Cobb
ParticipantI’d like to show in a widget on the home page (Avada Theme) the next upcoming event with the title, date, time, excerpt. I see how to do that with a static event ID. What shortcode variable or widget will automatically change to the next event when the current one has passed?
February 15, 2017 at 7:03 am #1235231Andras
KeymasterHello Christine,
Thanks for getting in touch with us! Out of the box that is not possible to do unfortunately, however, with some customization you should be able to achieve that.
You should be able to use the Event List widget for that, and set it to show 1 event.
It will require some customization which I would do with a template override. Here are 2 articles to get you started on that:
https://theeventscalendar.com/knowledgebase/themers-guide/
https://theeventscalendar.com/knowledgebase/template-overview/
This is the file you will need to override and customize:
wp-content\plugins\events-calendar-pro\src\views\pro\widgets\modules\single-event.php
This should get you started. Let me know if you need further help.
Cheers,
AndrasFebruary 15, 2017 at 7:32 am #1235289Christine Cobb
ParticipantBefore I start, I’m using the Event List Widget on that same page to show multiple events coming up. If I customize the single-event.php file will it either affect the other widget on the page or the look of Events on their own page?
February 16, 2017 at 8:04 am #1238625Andras
KeymasterThat is a great question, Christine!
Indeed, if you modify the quoted single-event.php that will influence the looks of the other Event List Widgets as well. But it will not influence the single event page, as that uses a different template.
I will ask around if there is an easy way to create a new widget instance, so you can have 2 different ones, if you’d like.
Cheers,
AndrasMarch 10, 2017 at 8:35 am #1252388Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Upcoming Event Content in Widget’ is closed to new replies.
