Home › Forums › Calendar Products › Events Calendar PRO › Hiding events list by default in Pro Calendar widget
- This topic has 7 replies, 3 voices, and was last updated 10 years, 8 months ago by
George.
-
AuthorPosts
-
August 11, 2015 at 1:41 pm #995230
Gillian
ParticipantHi,
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
August 12, 2015 at 8:11 am #995434Brian
MemberHi,
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
August 13, 2015 at 6:09 am #995698Gillian
ParticipantHi 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
DanAugust 13, 2015 at 7:34 am #995753Brian
MemberHi,
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
August 14, 2015 at 2:29 am #995997Gillian
ParticipantHi Brian,
That’s exactly what I need, in the calendar widget 🙂
That would be great.
Thanks!
August 14, 2015 at 8:22 am #996057Brian
MemberHello,
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
August 17, 2015 at 7:03 am #996571Gillian
ParticipantThat is SPOT ON.
Thankyou Brian!
August 18, 2015 at 12:45 pm #997057George
ParticipantThank 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 -
AuthorPosts
- The topic ‘Hiding events list by default in Pro Calendar widget’ is closed to new replies.
