• Resolved frankmanl

    (@frankmanl)


    In some cases I want to hide the start time of an event, but day and starttime are generated together by TEC, like this:

    <span class="tribe-event-date-start">vr 1 nov, 20:15</span><span class="tribe-event-time"></span>

    I try to get an output like

    <span class="tribe-event-date-start">vr 1 nov<span class="starttime">, 20:15</span></span><span class="tribe-event-time"></span>

    so I can use styling to hide the startime.
    Can anyone tell me in which file this day&time-string is created, so I can make a tweak?

    Frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @frankmanl ,

    Thank you for reachin gout.

    <span style=”font-family: Inter, sans-serif; white-space-collapse: collapse; background-color: rgb(251, 251, 251);”>To help me better understand the situation, could you share the direct URL to the page in question? Please do not share any credentials, this is for us to follow the </span>WordPress Forum Guidelines<span style=”font-family: Inter, sans-serif; white-space-collapse: collapse; background-color: rgb(251, 251, 251);”>.</span>

    Thread Starter frankmanl

    (@frankmanl)

    Hello Tristan, that is https://podium-beaufort.nl/

    E.g. Nov 9 Mary Gauthier

    Frank

    Plugin Support tristan083

    (@tristan083)

    Hi @frankmanl ,

    Thank you for your message and the information.

    I took a look at your https://podium-beaufort.nl/ page, and it looks like this page isn’t something that’s generated by The Events Calendar plugin. Rather, this page seems to be outputted by a third-party plugin, likely The Events Calendar Shortcode & Block.

    Have you tried reaching out to the said plugin’s support?

    Thread Starter frankmanl

    (@frankmanl)

    Hi Tristan, you are right that the calendar is generated by The Events Calendar Shortcode & Block, but that is not the issue. TECS&B uses output of TEC and wraps it up in it’s own code.

    The string that I want to change is

    <span class="tribe-event-date-start">za 9 nov, 20:45</span>

    and that is TEC output.
    I would like to change that to something like

    <span class="tribe-event-date-start">za 9 nov<span class="starttime">, 20:45</span></span>

    by adding some lines of my own in TEC’s code (and I understand that that is for my own risk), preferably by using an override file for TEC’s file.

    I’m looking for the TEC file that generates this little part of output.
    Hope you can help.

    Frank

    Plugin Support tristan083

    (@tristan083)

    Hi @frankmanl ,

    Thank you for your message and clarification.

    The file that’s responsible for the date/time is /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php.

    I want to note here that as per our Support Policy, we cannot provide full support for Customization or third-party integrations, even if we have a guide on our Knowledge base. It is still up to you as the end-user to implement this.

    Thread Starter frankmanl

    (@frankmanl)

    Thank you, Tristan, this helps me a lot.

    Plugin Support Darian

    (@d0153)

    Hi @frankmanl

    I’m glad Tristan was able to help you with this one.

    If you have some time to review, that would be amazing!

    https://ww.wp.xz.cn/support/plugin/the-events-calendar/reviews/

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘split day and time’ is closed to new replies.