Home › Forums › Calendar Products › Events Calendar PRO › Removing times from list and single event view
- This topic has 7 replies, 3 voices, and was last updated 11 years ago by
Support Droid.
-
AuthorPosts
-
June 26, 2012 at 3:32 am #21171
Rachel
MemberHi I am trying to remove the time from the list view and single event view. I’ve consulted this doc: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/ but the only place I can see to make the edit is date.php… I did this as a template override but it doesn’t seem to have changed anything. Am I on the wrong track? Which is the file that I need to update to remove the times? Thanks in advance.
June 26, 2012 at 7:49 pm #21225Jonah
ParticipantHi Rachel,
The only files you can override are in /wp-content/plugins/the-events-calendar/views and /wp-content/plugins/events-calendar-pro/views
For list view you’ll want to edit list.php and for single; single.php.
Let me know if you need anything else with this.
Cheers,
JonahJune 26, 2012 at 8:14 pm #21229Rachel
Memberok so based on the date functions I need to update this bit of code throughout:
– and somehow get [bool $displayTime = false] in there. Are you able to help me with the correct syntax? I was able to do the other mods myself but this is beyond me. ThanksJune 26, 2012 at 8:20 pm #21230Rachel
Memberhmm the php bit deleted itself.. this is the bit Im guessing I need to udpate: tribe_get_start_date()
June 26, 2012 at 8:32 pm #21233Jonah
ParticipantHi Rachel,
We have horrible code pasting in the forums, sorry about that. We’re working to improve it but it takes sort of a back burner to work on the plugin 🙂
Yeah, so if you do something like this:
tribe_get_start_date( null, false, 'F j, Y' );
That will display the date without the time (just paste in the same for the end_date). And if you want to change the date format further you can pass in any valid PHP date/time values: http://php.net/manual/en/function.date.phpDoes that help?
– Jonah
June 26, 2012 at 9:22 pm #21240Rachel
MemberAh.. got it… that worked a treat! thank you!
June 27, 2012 at 8:33 am #21249Jonah
ParticipantGlad to hear Rachel, let us know if there’s anything else you need.
– Jonah
July 7, 2015 at 6:25 am #977214Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Removing times from list and single event view’ is closed to new replies.
