remove end-time event?

Home Forums Calendar Products Events Calendar PRO remove end-time event?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #13404
    Suzanne
    Member

    Hi 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 πŸ™‚
    Thanks

    #13441
    Rob
    Member

    Hi 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?

    #13487
    Suzanne
    Member

    Thanks for thy reply. I searched the forum, but didn’t find the answer. Looking forward to the release.

    #13532
    Rob
    Member

    Hi 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?

    #13558
    Suzanne
    Member

    Hi Rob, yes, I got rid of the end time. But in the future it would be nice to have a choice.
    Thanks.

    #13568
    Rob
    Member

    Awesome, 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.

    #14785
    Suzanne
    Member

    Hey 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.

    #14807
    Rob
    Member

    Hey Suzanne. No problem; let me see what Jonah can offer up when he hits the forums today.

    #14828
    Jonah
    Participant

    Hi 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.

    #15095
    Suzanne
    Member

    Hi,

    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 :/

    #15133
    Jonah
    Participant

    Oh, then just remove lines 22 and 23 in single.php

    #15222
    Suzanne
    Member

    Thanks, that works like a sunshine πŸ™‚

    #15223
    Jonah
    Participant

    Awesome, glad to hear!

    #975627
    Support Droid
    Keymaster

    This 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.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘remove end-time event?’ is closed to new replies.