Hide End Time on Single Event pages in Avada

Home Forums Calendar Products Events Calendar PRO Hide End Time on Single Event pages in Avada

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1020556
    Sean
    Participant

    Hi,

    Using your snippet on the Avada theme to hide the end time for single day events. It works everywhere except on Single Event pages. Any ideas as to why this is not having an effect on the single event view pages? Example URL attached.

    #1020821
    Brian
    Member

    Hello Again,

    I can try to help out here.

    First, if you set the start and end time to the same time it will not display an end time.

    I tested the snippet on my site as well and it appears it does not work for the times in the detail section of the single events.

    I looked at the template and it hard codes the end time. Although if you set the start and end time to the same as mentioned above it does work in this section to not show an end time.

    If you need to remove it another way you can follow our themer’s guide

    To move and edit this template in your theme:

    plugins/the-events-calendar/src/views/modules/meta/details.php

    Moved here (it might be in avada already)

    avada/tribe-events/modules/meta/details.php

    There on line 90 (or around there)

    Change this:

    esc_html_e( $start_time . $time_range_separator . $end_time );

    To this:

    esc_html_e( $start_time );

    To remove the end time.

    Let me know if you have any follow up questions.

    Thanks

    #1020934
    Sean
    Participant

    Hi Brian,

    Thanks for your help with this. That is helpful to know that the end time is hard coded on the single event pages. The alternative method that you suggested worked for me. Thank you again for helping to resolve this issue.

    Best,
    Karly

    #1020995
    Brian
    Member

    Great glad it helps.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide End Time on Single Event pages in Avada’ is closed to new replies.