Support

Home Forums Events Calendar Add-on Customizing Tooltips

Customizing Tooltips

Posted: April 28, 2014 at 11:06 am

Viewing 5 reply threads


Trevis

April 28, 2014 at 11:06 am

Is it possible to customize the tooltips on the calendar? I’d like to display the time there without it showing up on the calendar (time only shows on hover or on event page); and I’d like to list the attendees in the tooltip as well.

Thanks!


Dean

April 29, 2014 at 1:01 am

Hi Trevis,

It should be possible but it will require a working knowledge of PHP and jQuery and you will need to edit core calendar files to achieve it.

We have a list of recommended developers should you need it: https://eventespresso.com/developers/event-espresso-pros/


Trevis

April 30, 2014 at 2:22 pm

I feel fairly comfortable doing that myself—can you tell me what I would need to do?


Trevis

April 30, 2014 at 4:21 pm

I think I’m on the right path… I added this to line 718 in espresso-calendar.php:

[code language=”php”]'<p>’ . [LISTATTENDEES] . ‘</p>'[/code]

But, instead of showing the attendees, it just says “Array”


Dean

May 1, 2014 at 8:01 am

Hi,

Well you would need to do_shortcode() on it, e.g.

$events[ $cntr ]['tooltip'] .= ' <p>' . do_shortcode('[LISTATTENDEES]') . '</p>';

You would also need to remove or comment out the following on line 434 (approx)

remove_shortcode('LISTATTENDEES');

The above line was added as using List Attendees in the event description can break things.

Please note that you may need to duplicate the List Attendees shortcode and rename it to a new name and remove/change the stylings.


Trevis

May 2, 2014 at 10:35 am

Awesome—thanks Dean. That is in place and working great! Didn’t need to rename the shortcode.

Viewing 5 reply threads

The support post ‘Customizing Tooltips’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso