Support

Home Forums Event Espresso Premium Calendar Widget Display Time on Mouse Over

Calendar Widget Display Time on Mouse Over

Posted: April 10, 2013 at 8:06 pm


Marc Lampcov

April 10, 2013 at 8:06 pm

Is there any way to get the pop up on the calendar widget to display the event time. I have the same class 3 times per day on the weekend, and it would be nice if when someone mouses over one of the check marks it would not only display the title, but the event time as well.

Thanks,

Marc


Dean

April 10, 2013 at 11:50 pm

Hi Marc,

It is possible but does require a code edit to one of the core calendar files.

I can’t remember where I got this from, it may have been another member of the community.

In espresso-calendar-widget.php (in the calendar addon) arounf line 83 you will see the following code.

					//Changes the colors of the events as seen here:
					//http://code.google.com/p/fullcalendar/issues/detail?id=6&can=1&q=css&colspec=ID%20Type%20Status%20Milestone%20Summary%20Stars
	$espresso_calendar_widget .= 'eventRender: function(event, element) { ';

After that code add the following.

$espresso_calendar_widget .= 'element.qtip({content:{text: event.title + " " + event.startTime}, position: {my: \'bottom center\', at: \'top center\'}})';
$espresso_calendar_widget .= ';';

Note that if you update the calendar add on these changes will be lost, so make a copy of the code snippet for future use.

The support post ‘Calendar Widget Display Time on Mouse Over’ 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