Home › Forums › Calendar Products › Filter Bar › Add Orgaziner to calendar detail overlay
- This topic has 11 replies, 2 voices, and was last updated 10 years, 1 month ago by Casey.
-
AuthorPosts
-
March 16, 2014 at 10:56 am #119407LarsParticipant
Is it possible to add “Organizer” to the overlay box when hovering a calendar event? (Month/Week view)
March 17, 2014 at 9:31 am #119799CaseyParticipantmending,
Thanks for reaching out, and hopefully I can point you in the direction here. This functionality isn’t currently available with customizing the template views. In order to do this, first, take a look at our themer’s guide, to see how to override template files. Then you’ll want to override and modify the ‘views/month/single-event.php’ file in order to change the content of the overlay box as you’d like.Hopefully that gets you pointed in the right direction. Good luck!
Thanks! 🙂
-Casey-
March 25, 2014 at 5:51 am #122824CaseyParticipantI 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 need further help or if I should go ahead and close out this thread. Thanks! 🙂
-Casey-
March 25, 2014 at 6:03 am #122857LarsParticipantHi, are you sure you are talking about the right file? We are trying to “Orgaziner” to show here:
https://www.dropbox.com/s/u8lh0w92n4wdja3/Screenshot%202014-03-25%2013.58.35.pngMarch 25, 2014 at 12:49 pm #123139CaseyParticipantYes, that’s correct. You’ll want to look for the DIV with a class of ‘tribe-events-tooltip’. Good luck!
March 25, 2014 at 3:47 pm #123198LarsParticipantThis is not quite right. The file I should look for is this: /events-calendar-pro/views/pro/week/single-event-tooltip.php and into that insert something that will pull the “Organizer” title from the specific event and list it in the Tooltip overlay box. We tried this with no luck:
<!– Organizer Title –>
<?php do_action(‘tribe_events_single_organizer_before_title’) ?>
<?php the_title(‘<h2 class=”entry-title author fn org”>’,'</h2>’); ?>
<?php do_action(‘tribe_events_single_organizer_after_title’) ?>March 26, 2014 at 5:56 am #123295CaseyParticipantYes, you’re right, that’s the correct file to modify for the week view tooltips. Sorry, my previous reply was referring to the Month View tooltips. 🙂 You’ll need to use the tribe_get_organizer() function in order to display the organizer in your tooltips.
Take a look at the documentation there in order to see how to use the function. Good luck!
Thanks! 🙂
-Casey-
March 26, 2014 at 6:45 am #123366LarsParticipantCould please just let us know what to fill in? We tried this and nothing works:
https://www.dropbox.com/s/zimn6qe6peh1pci/Screenshot%202014-03-26%2014.44.01.pngshouldn’t it use eventID rather than postID as Tooltips does already?
March 26, 2014 at 8:23 am #123467CaseyParticipantmending,
You shouldn’t be putting the entire function in there. You should just be able to do something like this to output the organizer name:
<?php echo tribe_get_organizer(); ?>
Hope that helps!
March 26, 2014 at 8:47 am #123474LarsParticipantThat results in nothing. No output.
March 26, 2014 at 8:59 am #123480CaseyParticipantTry passing the event ID to the function like this:
echo tribe_get_organizer($event->ID);
March 27, 2014 at 8:59 am #123820CaseyParticipantGreat! 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://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5
Thanks in advance. 🙂
Cheers,
Casey -
AuthorPosts
- The topic ‘Add Orgaziner to calendar detail overlay’ is closed to new replies.