Upcoming Event Content in Widget

Home Forums Calendar Products Events Calendar PRO Upcoming Event Content in Widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1234771
    Christine Cobb
    Participant

    I’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?

    #1235231
    Andras
    Keymaster

    Hello 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,
    Andras

    #1235289
    Christine Cobb
    Participant

    Before 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?

    #1238625
    Andras
    Keymaster

    That 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,
    Andras

    #1252388
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Upcoming Event Content in Widget’ is closed to new replies.