Help Desk

Disable calendar view popup (tooltip)

  • Posts: 10 Topics: 5
    | Permalink

    I would like to disable the popup on the calendar view and add the event date and time to the title on the individual calendar day block. Is this possible? Is there some documentation on where these edits can be done? Thanks!

    Posts: 28 Topics: 12 Answers: 1
    | Permalink

    I know that the tooltip display for calendar view is displayed via plugins > the events calendar > views > months > single-event.php.

    I tried removing this piece “data-tribejson='<?php echo tribe_events_template_data( $post );” but it didn’t seem to work so I just used the CSS and set the tooltip piece to display: none;

    Posts: 28 Topics: 12 Answers: 1
    | Permalink

    Perhaps you can even just take out “$post” in the data-tribejson. Not sure. Would have to play around with it. But I think that piece is how the calendar gets the data as far as the post thumbnail and link.

    Posts: 3519 Answers: 115
    | Permalink
    Correct Answer

    btellock,
    Thanks for getting in touch! You should be able to disable the month view tooltips by adding the following CSS to your theme’s stylesheet:

    .tribe-events-tooltip {
      display: none !important;
    }

    Having the ‘!important’ in the style declaration should prevent it from displaying, even when the Javascript triggers it. So, give that a shot and let me know if it does the trick! Thanks! πŸ™‚

    -Casey-

    P.S. – Thanks for jumping in to help @aling! πŸ˜€

    Posts: 10 Topics: 5
    | Permalink

    Thank you both! The above CSS did the trick.
    Any ideas on how to add the event date and time to the title on the individual calendar day block?

    Posts: 3519 Answers: 115
    | Permalink

    btellock,
    You should be able to perform a template override on ‘plugins/the-events-calendar/views/month/single-event.php’ (review our themer’s guide for instructions on template overrides), and then just modify the contents of the H3 tag at the bottom of that file to also use tribe_get_start_date().

    That should get you started in the right direction. Thanks! πŸ™‚

    -Casey-

    Posts: 3519 Answers: 115
    | Permalink

    I just wanted to follow up and see if you’re all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! πŸ™‚

    -Casey-

    Posts: 10 Topics: 5
    | Permalink

    I think I am good. Thanks!

    Posts: 3519 Answers: 115
    | Permalink

    Great! Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.

    By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/lo

    Thanks in advance. πŸ™‚

    Cheers,
    Casey