Home › Forums › Calendar Products › Events Calendar PRO › tooltip and month view
- This topic has 7 replies, 3 voices, and was last updated 8 years, 3 months ago by
Jennifer.
-
AuthorPosts
-
January 11, 2018 at 7:36 am #1423516
mario_no
ParticipantHi
Month view – tooltip. How to add VENUE next to date and time?January 11, 2018 at 11:24 pm #1424377Jennifer
KeymasterHello,
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
January 12, 2018 at 3:17 am #1424488mario_no
ParticipantI 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 );January 12, 2018 at 8:31 am #1424717Jennifer
KeymasterNo 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!
January 12, 2018 at 8:43 am #1424816Mathew
ParticipantHello,
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.
January 12, 2018 at 10:34 am #1424978Jennifer
KeymasterThanks for sharing that Mathew!
mario_no, please let me know if you are able to get this working.
January 19, 2018 at 12:18 pm #1430961mario_no
ParticipantHi
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 🙂
January 19, 2018 at 8:08 pm #1431213Jennifer
KeymasterHello,
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
-
AuthorPosts
- The topic ‘tooltip and month view’ is closed to new replies.
