Hiding events list by default in Pro Calendar widget

Home Forums Calendar Products Events Calendar PRO Hiding events list by default in Pro Calendar widget

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #995230
    Gillian
    Participant

    Hi,

    On the following page I have the pro calendar widget enabled, as you can see, below, the list is populated with the next events. How can I hide this list by default and only show events when a date is clicked?

    http://iwgtest.co.uk/evi/facilities/

    Thanks

    #995434
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    I can help out.

    We do not have a feature to do as you describe.

    It would be possible with a customization to create a script to hide the list under the calendar and then after a day is clicked to start showing the list.

    You could also set the Number of events to show in the Mini Calendar to 0 so no events show and then when someone clicks a date it takes them to the day view to show the events.

    I can try to help get you started on the first option here if you like, but might not be able to provide all the coding.

    Let me know.

    Thanks

    #995698
    Gillian
    Participant

    Hi Brian,

    Help on the first issue would be great, I tried to get the day link to carry a value with the url when clicked, such as ‘show=1’ so that I could then ‘$GET’ this and add code to decide whether to show the list. However I could not get the link to append this, can you suggest how I would go about this? Or a simpler way of going about the task if there is one?

    Thanks
    Dan

    #995753
    Brian
    Member

    Hi,

    I am a little unclear of what you would like help with.

    Can I help you get started on a script that hides the events until a day is clicked then start showing it?

    Let me know.

    Thanks

    #995997
    Gillian
    Participant

    Hi Brian,

    That’s exactly what I need, in the calendar widget 🙂

    That would be great.

    Thanks!

    #996057
    Brian
    Member

    Hello,

    I came up with this script to hide the Mini Calendar Event List on Page Load.

    Then once the Mini Calendar is clicked it will show the list again.

    Add this to your child theme’s (or theme) functions.php:

    https://gist.github.com/jesseeproductions/e950af6c6cdfcfe7c78e

    Let me know how that works for you.

    Thanks

    #996571
    Gillian
    Participant

    That is SPOT ON.

    Thankyou Brian!

    #997057
    George
    Participant

    Thank you Gillian! Brian is out on vacation for a bit, so I’ll pass this along to him, great to know that things worked out here! 🙂

    Cheers,
    The Events Calendar Support Team

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Hiding events list by default in Pro Calendar widget’ is closed to new replies.