Changes to Tooltip.php not taking effect
[[=dateDisplay]] exists in both /wp-content/plugins/the-events-calendar/src/views/month/mobile.php and /wp-content/plugins/the-events-calendar/src/views/month/tooltip.php
Referring to this past answer on customizing this might be helpful: https://theeventscalendar.com/support/forums/topic/help-adding-category-to-tooltip-but-with/#post-1080199
Please let me know if you still need assistance after referencing this information.
That past forum thread I linked to explained how to do such customizing… you have to modify the single-event.php file in that same directory, particularly $additional_data so you can use it in the the tooltip.php file.
The first problem I need to solve is that even if I edit the core plugin files (NOT the child files) No changes appear on the site.
I deleted the [[=dateDisplay]] replace it with nothing at all the site will still display the date on the tooltip. It should not display anything if that line of code is gone. Correct?
I have cleared the theme cache, my browser cache and even open the page in an incognito window. I still see the date on the tooltip.
I would like to display the location of the event on the tooltip. But first, we need to find out why editing the core files make no changes whatsoever to the event calendar.
Gotcha. You should switch to a WordPress default theme like Twenty Fifteen, Twenty Sixteen, Twenty Seventeen, etc. and see if the same happens.
If modifying the core files then does work, you should look for any theme overrides built into your active theme.
If modifying the core files does not work while running Twenty Seventeen theme, then I’d say you’re likely incorrectly making the overrides, in which case please detail which file(s) you’re modifying and how you’re doing it.
Here’s a .zip of the single-event.php and the tooltip.php for Month View that worked for me: tooltip-override-for-1435321
Please let me know how this goes for you.
The topic ‘Changes to Tooltip.php not taking effect’ is closed to new replies.