Support

Home Forums Events Calendar Add-on Add event date to tooltip?

Add event date to tooltip?

Posted: June 12, 2014 at 6:49 pm

Viewing 2 reply threads


Trevis

June 12, 2014 at 6:49 pm

How can I add the date to the tooltips, ideally next to or right below the event title?


Dean

June 13, 2014 at 4:45 am

Hi,

You would have to edit a core file to achieve this. So, bearing in mind updates to the calendar will remove the changes, you could edit the espresso-calendar/espresso-calendar.php file, approx line 696

Change it so it reads like this

if ( $show_tooltips ) {

$events[ $cntr ]['description'] = $event->start_date ? '<p class="time_cal_qtip">' . __('Date: ', 'event_espresso') . date(get_option('date_format'), strtotime($event->start_date) )  . ' - ' . date( get_option('date_format'), strtotime($event->end_date) ) . '</p>' : '';

// gets the description of the event. This can be used for hover effects such as jQuery Tooltips or QTip
$events[ $cntr ]['description'] .= wpautop( stripslashes( do_shortcode( $event->event_desc )));


Trevis

June 13, 2014 at 1:27 pm

Very nice—that’s perfect.

Thanks so much, Dean. Have a great weekend!

Viewing 2 reply threads

The support post ‘Add event date to tooltip?’ 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