Home › Forums › Calendar Products › Community Events › Changes to Tooltip.php not taking effect
- This topic has 10 replies, 3 voices, and was last updated 6 years, 1 month ago by Cliff.
-
AuthorPosts
-
January 24, 2018 at 5:25 pm #1435321oneyellowtreeParticipant
Hello,
I have been trying to edit a templet file of tooltip.php.
I have made a copy of the files in the child theme as instructed here https://theeventscalendar.com/knowledgebase/themers-guide/
I would like to change the line [[=dateDisplay]] to display the location
But none of the changes seem to take effect, Deleting the line [[=dateDisplay]] the tooltip still displays the time. even editing the core tooltip.php file has no effect on the site. I have tried clearing the theme cache But the changes still have no effect.
January 25, 2018 at 6:19 pm #1436614CliffMemberHi.
[[=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.
January 26, 2018 at 11:43 am #1437388oneyellowtreeParticipantHi Cliff,
I am not wanting to use [[=dateDisplay]] I want to replace it with tribe_get_venue().
Nothing I do to the template makes any changes.
January 26, 2018 at 2:35 pm #1437603CliffMemberGotcha. You might see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.)
There might be an error because of trying to use PHP within a JavaScript context.
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.
February 2, 2018 at 2:00 pm #1442878oneyellowtreeParticipantHi cliff,
I will try that but I wonder why I still don’t see any changes even if I edit the ‘core file’ and delete [[=dateDisplay]]. I still see the date when I shouldn’t see anything.
February 12, 2018 at 8:12 pm #1451271CliffMemberHi. So sorry my long outage wasn’t covered by another team member. Please let me know the current status of this issue so I can best help going forward.
Thank you.
February 26, 2018 at 5:03 pm #1464400oneyellowtreeParticipantHey Cliff.
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.
Thanks
February 26, 2018 at 8:10 pm #1464474CliffMemberGotcha. 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.
February 27, 2018 at 5:40 pm #1465441oneyellowtreeParticipantHey Cliff,
I was able to find a solution on GitHub https://gist.github.com/bordoni/439bd58bbfbb7db3454b
I did not change themes or change anything in my current theme but there have been a few updates since I opened this ticket so perhaps that solved the caching problem.
Thanks for your help.
February 27, 2018 at 7:35 pm #1465497CliffMemberI’m glad you found what you were looking for.
Have a great day.
-
AuthorPosts
- The topic ‘Changes to Tooltip.php not taking effect’ is closed to new replies.