Remove tooltip on event page grid

Home Forums Calendar Products Events Calendar PRO Remove tooltip on event page grid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31821
    Patrick
    Participant

    Hey guys, newb here. Does anybody know which code in which files I have to comment out to disable the tooltip functionality for the calendar events grid page?

    #31838
    Jonah
    Participant

    Hi Patrick,

    To accomplish this, make a copy of /wp-content/plugins/the-events-calendar/resources/events.js and place in an ‘events’ folder in your theme. Then, open it up and comment out lines 14-19 which is the code for the tooltips in the big calendar. Then, add this to your themes functions.php file:

    /*-------------------------------------------------------------------------------
    Add Custom events.js
    -------------------------------------------------------------------------------*/
    function example_enqueue_scripts() {
    wp_dequeue_script('tribe-events-calendar-script');
    wp_register_script('custom-events-calendar-script', get_template_directory_uri().'/js/events.js'); // notice it's not the same script name as the original one, that's important - otherwise it re-enqueues the old version
    wp_enqueue_script('custom-events-calendar-script');
    }
    add_action('wp_enqueue_scripts', 'example_enqueue_scripts');

    That will remove the core events.js and load yours instead.

    Please keep in mind that you will then be running your own modified copy of events.js and if we publish any updates to the plugin, you will need to manually merge those in to yuor customized version.

    I hope this helps!

    – Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Remove tooltip on event page grid’ is closed to new replies.