• Resolved stuartsheppard

    (@stuartsheppard)


    We are using the events calendar to show events that are relative to the entire day such as St Georges Day, Easter Sunday etc.
    I am trying to remove the event time data that is shown in the tool tip on mouse over in the month view.
    It shows as: “May 1 @ 12:00 am” I would like to remove the “@ 12:00 am” part.
    Any help gratefully received.
    TIA

    Stuart

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @stuartsheppard,

    Thanks for your interest in our products.

    This can definitely be done! Following our Themer’s Guide, you’ll want to create a directory called tribe-events in your theme directory. The file that you’ll want to target is wp-content/plugins/the-events-calendar/src/views/month/single-event.php

    Hope that helps!

    Thread Starter stuartsheppard

    (@stuartsheppard)

    Hi Ed,
    Thanks for the reply, I have copied this file already and have it running in the child theme, as I moved the date to the top of the title in the tooltip already.
    The problem I still have is that the [[=dateDisplay]] call seems to also contain the “@ 12:00 am” section I am trying to remove.
    In the description there is no mention of where this meta is constructed so I am unable to edit the actual string before it is displayed.
    Can you tell me what to call from the data for only the date of the event? I can then constuct a custom meta to display this in the template. This would also work for me.
    TIA
    Stuart

    Here’s a link to a past user that was trying to modify some things within tooltip.php → https://theeventscalendar.com/support/forums/topic/help-adding-category-to-tooltip-but-with/#post-1080199 and another here → https://theeventscalendar.com/support/forums/topic/changing-tooltip-to-display-location/

    While these don’t do exactly what you are looking to accomplish, they demonstrate how to define those variables and call them in JavaScript.

    Take care,
    Ed ??

    Thread Starter stuartsheppard

    (@stuartsheppard)

    Thanks Ed, I will have alook and see what can be done from there.
    Stuart

    Hey there,

    Since this thread has been inactive for a while, I’m going to go ahead and mark it as resolved. Don’t hesitate to create a new thread any time you help again!

    Ed ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing the time data from the title on mouse over’ is closed to new replies.