Support

Home Forums Event Espresso Premium Add to Google Calendar Button

Add to Google Calendar Button

Posted: June 27, 2016 at 12:58 pm


pixelstrike

June 27, 2016 at 12:58 pm

Hello,

I would like to add an “Add to Google Calendar” button next toe the ical button that the plugin provides. Can anyone provide guidance, in the form of code and what template to edit, on how to do this?


Tony

  • Support Staff

June 28, 2016 at 9:11 am

Hi there,

We can not provide customization’s such on these on the forums however we can help point you in the right direction.

Within EE there is a filter hook that EE uses to add the iCal, this is:

apply_filters( 'FHEE__espresso_list_of_event_dates__datetime_html', $html, $datetime );

You can use that same filter to add in another button for Google calendar.

Take a look within event-espresso-core-reg\modules\ical\EED_Ical.module.php at the generate_add_to_iCal_button() and download_ics_file() methods to see how EE pulls all of the information to generate the iCal button, you can use that as an example to create your own Google Calendar link.

Here is an example of how to format the link:

http://stackoverflow.com/questions/10488831/link-to-add-to-google-calendar

The support post ‘Add to Google Calendar Button’ 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