Get Mini Calendar grid default date from URL parameter

Home Forums Calendar Products Events Calendar PRO Get Mini Calendar grid default date from URL parameter

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1288080
    Michael
    Participant

    Hi.

    Normally, when viewing a page with the events calendar mini-calendar widget in the sidebar (grid/month view), it highlights the current date as the present day.

    Is it possible to have the calendar default to a different date based on something like a url parameter (i.e. ?fwp_event_date=2017-06-17)?

    For instance, if you were looking at June 2017 events, the mini calendar would have June 17 highlighted instead of still showing the current month of May.

    Thanks.

    #1288711
    Victor
    Member

    Hi Michael!

    Thanks for reaching out to us! 🙂

    Let me help you with that.

    Unfortunately, there is no built in way to do that, but I guess you could achieve something like that with some custom coding.

    While our “<u>Terms of Service</u>” doesn’t allow us to do customizations, we do like helping out and at least point users into the right direction. We also have a list of freelancers who we would happily recommend for this level of help.

    That said, let me try to help you as best I can.

    You could try hooking into the ‘wp_ajax_tribe-mini-cal’ and ‘wp_ajax_nopriv_tribe-mini-cal’ action hooks, where you can customize the ajax calls for the mini calendar. There are also the following action hooks for the day selection ajax call: ‘wp_ajax_tribe-mini-cal-day’ and ‘wp_ajax_nopriv_tribe-mini-cal-day’.

    You can find those hooks located at /wp-content/plugins/events-calendar-pro/src/Tribe/Mini_Calendar.php

    I hope that helps, and don’t hesitate to ask any other question.

    Cheers!
    Victor

    #1298560
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Get Mini Calendar grid default date from URL parameter’ is closed to new replies.