Remove end time

Home Forums Calendar Products Events Calendar PRO Remove end time

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1454176
    webvamos
    Participant

    Hi,

    How can I remove the end time of the events in the front end?

    Thank you

    #1456685
    Geoff B.
    Member

    Good evening David and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    The simplest solution is to use a code snippet.

    You could apply the following snippet in the functions.php file of your theme (without the PHP tag at the top): https://gist.github.com/GeoffEW/a5b52c12e9b5635b64ec0ab4f16898dd

    But first to be extra safe, before making any changes to your functions.php file, you should make a backup of that file.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1458954
    webvamos
    Participant

    Hi Geoff,

    Thank you for your reply and your help. It works well, but still appears in the side details as you can see in the attached image. How can I disactivate that too?

    The url is http://garnachagrenache.com/event/evento/

    All the best!

    #1459468
    Geoff B.
    Member

    Good evening David,

    You are right!

    The issue is that this section of the page is generated by the $time_formatted variable defined in /wp-content/plugins/the-events-calendar/src/views/modules/meta/details.php at line 25

    The simplest way to tackle this would be via a template override of that file. You might want to read our Themer’s guide to get a sense of how that works.

    Basically, remove the end time from that variable, upload the file back in the correct folder in your Avada Child theme and you should be good to go.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1461222
    webvamos
    Participant

    Hi Geoff,

    I located the file and I removed the end time, so now it disappeared.

    Thank you again for your help!

    #1462641
    Geoff B.
    Member

    Good evening David,

    I am super stoked that you were able to tweak the calendar to your needs.

    You are welcome back in our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great weekend!

    Geoff B.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove end time’ is closed to new replies.