Remove End Times

Home Forums Calendar Products Events Calendar PRO Remove End Times

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1001350
    John Gilbreath
    Participant

    Hello,

    For our site, we want only the beginning times to be shown for each event, not the end time.

    How can I remove the end times across every possible view (including the tool tip hover on calendar view?)

    Thank you.

    #1001787
    George
    Participant

    Hey John,

    While removing the end time from tooltips is quite tricky, you can reduce the date and time displays elsewhere by doing two things. First is to just use a bit of Custom CSS – add code like the following to the bottom of your theme’s style.css file:


    .tribe-events-schedule .endtime.dtend {
    display: none !important;
    }

    This will still leave the “-” separator, however, which you can’t target with CSS, so for that you’ll have to add code like the following to your theme’s functions.php file:


    add_action( 'tribe_events_event_schedule_details_inner', 'tribe_support_1001350' );

    function tribe_tribe_support_1001350( $inner ) {
    return str_replace( '-', '', $inner );
    }

    We don’t offer support for customizations here, so I hope this helps and hope you can play around with it enough on your own to pull off a satisfactory customization. If you’re interested in removing end time/date info from tooltips, unfortunately the simplest way I can think of for doing that is to customize the tooltip template file directly.

    You can learn more about how to do that in general here → https://theeventscalendar.com/knowledgebase/themers-guide/

    Best of luck with your customizations!

    George

    #1006396
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove End Times’ is closed to new replies.