Home › Forums › Calendar Products › Events Calendar PRO › remove end-time event?
- This topic has 13 replies, 4 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
January 16, 2012 at 5:12 am #13404
Suzanne
MemberHi There,
Is is possible to completely remove the end-time in events? Or better yet, make it possible to not show the end-time when that field is not filled in? If not, make it a request for the next version π
ThanksJanuary 16, 2012 at 4:20 pm #13441Rob
MemberHi again Suzanne. While the second request (allowing the field to not be filled in) isn’t possible and may come in a future release, you should be able to workaround this by following the instructions from the thread where a user asked a similar question: https://theeventscalendar.com/support/forums/topic/how-to-delete-end-date-end-time/. Does that point you where you need to be?
January 17, 2012 at 6:23 am #13487Suzanne
MemberThanks for thy reply. I searched the forum, but didn’t find the answer. Looking forward to the release.
January 17, 2012 at 4:47 pm #13532Rob
MemberHi Suzanne. I was specifically thinking the suggestion Jonah provided in this response: https://theeventscalendar.com/support/forums/topic/how-to-delete-end-date-end-time/#post-12353. Does that not help?
January 18, 2012 at 2:04 am #13558Suzanne
MemberHi Rob, yes, I got rid of the end time. But in the future it would be nice to have a choice.
Thanks.January 18, 2012 at 7:51 am #13568Rob
MemberAwesome, thanks Suzanne. Yes – that may change down the road, depending on how many requests there are for it. A good way to get your vote in the ring would be to note it in our sticky “Feature Requests” thread (if you haven’t already). Let me know what else we can do.
February 7, 2012 at 2:25 am #14785Suzanne
MemberHey Rob, I totally forgot that I need to get rid of the end-time in the single view as well. I’m kinda afraid to meddle with the code in single.php. Maybe I can hide the itemprop=”endDate” with css? No idea how though.
I need to do the same thing with itemprop=”addressCountry”, since every event is in the same country that info is redundant.
February 7, 2012 at 12:26 pm #14807Rob
MemberHey Suzanne. No problem; let me see what Jonah can offer up when he hits the forums today.
February 7, 2012 at 2:01 pm #14828Jonah
ParticipantHi Suzanne, you will need to modify single.php but it’s a pretty easy change. First make sure you are working with a duplicate copy in an ‘events’ folder in your theme. Then just look at line 21 where: echo tribe_get_start_date( null, false, ‘Y-m-d-h:i:s’ ); is called. That third argument ‘Y-m-d-h:i:s’ is where the date/time format is set. If you don’t want the time just remove the -h:i:s so is reads like echo tribe_get_start_date( null, false, ‘Y-m-d’ ); instead. Do the same thing for the end date if you want and you should be set.
Let me know if you need any other help with this.
February 13, 2012 at 12:55 pm #15095Suzanne
MemberHi,
Thanks for the answer, but that will only remove the time. I want to get rid of the end date Γ‘nd time totally. So I need to remove some of this code in single.php:
<meta itemprop="startDate" content="”/>
<meta itemprop="endDate" content="”/>
<meta itemprop="startDate" content="”/>
If I remove the entire bit about end date, I get the start date twice. Probably a part in the first line of code need to be romove, but what part…:)
I’m not so fluent in php :/
February 13, 2012 at 10:20 pm #15133Jonah
ParticipantOh, then just remove lines 22 and 23 in single.php
February 15, 2012 at 9:24 am #15222Suzanne
MemberThanks, that works like a sunshine π
February 15, 2012 at 11:19 am #15223Jonah
ParticipantAwesome, glad to hear!
July 4, 2015 at 5:00 pm #975627Support 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 ‘remove end-time event?’ is closed to new replies.
