Home › Forums › Calendar Products › Events Calendar PRO › Hide the event times in Event Calendar widget
- This topic has 9 replies, 4 voices, and was last updated 13 years, 6 months ago by
Leah.
-
AuthorPosts
-
July 30, 2012 at 1:07 pm #22951
Matt
MemberOn the home page of http://www.bluewater.org in the lower-right column is a widget displaying certain major events. The issue we’re having is that multiple-day events (say, a festival running Friday, Saturday, and Sunday) often have different start/end times each day. We don’t want to have a separate event for each of those days, so we’re wondering how to hide the start/end times from showing, but leave the dates visible.
(For now, we just have the events listed as All Day.)
Thanks for your help!
MattAugust 1, 2012 at 5:53 pm #23080Rob
MemberHey Matt. Thanks for the note on this, and my apologies for the inconvenience you’re faced with so far. I am seeing the issue on your site there and this should be relatively easy by just doing a template override of the widget itself.
Create a new ‘events’ folder in your theme directory and copy over the events-list-load-widget-display.php file. There you can modify that copied file and change the date/time output as you see fit. The WordPress codex on date/time can give you what you need on the formatting front: http://codex.wordpress.org/Formatting_Date_and_Time.
That help? Let me know if not.
August 6, 2012 at 1:23 pm #23308Matt
MemberThat didn’t work. I can’t figure out where to change the date, time at.
August 7, 2012 at 2:27 pm #23368Rob
MemberAlright, Matt. No problem – let me get Casey from our dev team to try and point you in the right direction on this.
August 7, 2012 at 7:21 pm #23391Casey
ParticipantMatt,
I’m more than happy to help with this. If you don’t have an ‘Events’ directory in your theme directory, then you’ll need to perform a template override (https://theeventscalendar.com/faq/what-are-template-overrides-and-how-do-i-do-them/). Once you’ve done this go to YOUR_THEME_DIRECTORY/events/events-list-load-widget-display.php and edit this code starting on line 45: https://gist.github.com/3291389With this code: https://gist.github.com/3291479
That should remove the time from events that are multi-day. Just let me know if you have any more questions. Always happy to help. Thanks!
August 9, 2012 at 9:16 am #23480Matt
MemberHmm. I did that, but its not appearing on the front end of the site. The times are still there.
August 15, 2012 at 8:07 am #23697Rob
MemberGotcha – thanks for the follow-up, Matt. Not sure if Casey saw your last note but I’ve passed it back his way just to be safe. Stay tuned!
August 16, 2012 at 9:00 am #23745Casey
ParticipantMatt,
Can you post the code in your ‘events-list-load-widget-display.php’ file to https://gist.github.com/ and share the link with me to review? Thanks!August 21, 2012 at 7:54 am #23867Matt
MemberHere is the link: https://gist.github.com/3416224
October 2, 2012 at 1:15 pm #26006Leah
MemberHi Matt,
Are you still having trouble with this? I apologize that no one has gotten in touch sooner.
~Leah
-
AuthorPosts
- The topic ‘Hide the event times in Event Calendar widget’ is closed to new replies.
