tooltip and month view

Home Forums Calendar Products Events Calendar PRO tooltip and month view

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1423516
    mario_no
    Participant

    Hi
    Month view – tooltip. How to add VENUE next to date and time?

    #1424377
    Jennifer
    Keymaster

    Hello,

    You will need to customize the tooltip template, which you can do by following these instructions. The template you’ll want to edit can be found at wp-content/plugins/the-events-calendar/src/views/month/tooltip.php. You can add the venue with the tribe_get_venue function, or you can use one of the other functions here to retrieve different certain information about the venue.

    We are a bit limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know. I’ll be happy to point you in the right direction!

    Thanks,

    Jennifer

    #1424488
    mario_no
    Participant

    I get stuck 😉

    In the single-event.php is instructions on how to use and modify tooltip template.

    I’m not sure where to add this code?

    $additional_data = array();
    $string = get_post_meta( get_the_ID(), ‘hello_meta’ ); // this string can be anything
    $additional_data[‘hello’] = $string;
    echo tribe_events_template_data( $post, $additional_data );

    #1424717
    Jennifer
    Keymaster

    No problem!

    Where you add the code depends on where you want the venue to show up in the tooltip…So for example, if you want it to show above the date and time, you can add this line:

    directly underneath this line:

    Note that the template you are copying over and editing is the wp-content/plugins/the-events-calendar/src/views/month/tooltip.php template, not the single-event.php template.

    You’ll want to save this copy in this folder: [your-theme]/tribe-events/month/tooltip.php (you’ll need to create the tribe-events and month folders in your child theme).

    Let me know if this helps!

    #1424816
    Mathew
    Participant

    Hello,

    Here’s an article that should produce the desired results.

    Please note that the tooltip.php has changed since this article was published. Now it has a second “featured” section, so you will want to add the code in both sections.

    Hope this helps.

    #1424978
    Jennifer
    Keymaster

    Thanks for sharing that Mathew!

    mario_no, please let me know if you are able to get this working.

    #1430961
    mario_no
    Participant

    Hi

    Jennifer
    The function tribe_get_venue(), suggested by you, did not work as it should be. All venue showed the same value.

    Mathew
    I used your snippet and it solved the problem.
    http://lowe.iwanowice.pl/kalendarz/

    Thank you for your help, great support 🙂

    • This reply was modified 8 years, 3 months ago by mario_no.
    • This reply was modified 8 years, 3 months ago by mario_no.
    #1431213
    Jennifer
    Keymaster

    Hello,

    I’m glad to hear that it’s working for you now! Thanks again Mathew for sharing that snippet.

    Since this has been marked “resolved”, I’ll go ahead and close it out. Please feel free to open up a new one if you run into any other issues.

    Thanks,

    Jennifer

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘tooltip and month view’ is closed to new replies.