Disable tooltips on The Events Calendar month view

Here is a file you could save in wp-content/your-theme/tribe-events/month/content.php that will disable tooltips on the month view calendar produced by The Events Calendar plugin.

This is a template override for the month view that adds a few lines of JavaScript to remove some event handlers, and it removes a call loading the tooltip template. The JavaScript beginning on line 17 and the commented-out template call on line 56 are our points of interest.

I found a few solutions on the plugin’s official support forums, but I didn’t like any of them. This one loads all of the tips and the scripting that powers them while simply hiding the tooltips with CSS, and I think that’s a bloated solution. This one left my site throwing a JavaScript errors each time the mouse cursor hovered an event title, and that seems half-baked.

Leave a Reply

Your email address will not be published.