Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A custom template for The Events Calendar month view that disables tooltips
<?php
/**
* Month View Content Template
* The content template for the month view of events. This template is also used for
* the response that is returned on month view ajax requests.
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/content.php
*
* @package TribeEventsCalendar
* @version 4.6.19
*
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
} ?>
<script type="text/javascript"><!--
/* stop tooltips */
jQuery(document).ready(function() {
jQuery( document.getElementById( 'tribe-events' ) ).off( 'mouseenter', '**' );
});
//--></script>
<div id="tribe-events-content" class="tribe-events-month">
<!-- Notices -->
<?php tribe_the_notices() ?>
<!-- Month Header -->
<?php do_action( 'tribe_events_before_header' ) ?>
<div id="tribe-events-header" <?php tribe_events_the_header_attributes() ?>>
<!-- Header Navigation -->
<?php tribe_get_template_part( 'month/nav' ); ?>
</div>
<!-- #tribe-events-header -->
<?php do_action( 'tribe_events_after_header' ) ?>
<!-- Month Grid -->
<?php tribe_get_template_part( 'month/loop', 'grid' ) ?>
<!-- Month Footer -->
<?php do_action( 'tribe_events_before_footer' ) ?>
<div id="tribe-events-footer">
<!-- Footer Navigation -->
<?php do_action( 'tribe_events_before_footer_nav' ); ?>
<?php tribe_get_template_part( 'month/nav' ); ?>
<?php do_action( 'tribe_events_after_footer_nav' ); ?>
</div>
<!-- #tribe-events-footer -->
<?php do_action( 'tribe_events_after_footer' ) ?>
<?php tribe_get_template_part( 'month/mobile' ); ?>
<?php //stop tooltips tribe_get_template_part( 'month/tooltip' ); ?>
</div><!-- #tribe-events-content -->
@csalzano

This comment has been minimized.

Copy link
Owner Author

@csalzano csalzano commented Feb 5, 2019

The JavaScript beginning on line 17 and the commented-out template call on line 56 are our points of interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment