Support

Home Forums Event Espresso Premium How to add "Add to Google Calendar" button on event listings

How to add "Add to Google Calendar" button on event listings

Posted: March 29, 2019 at 2:05 am

Viewing 3 reply threads


WildfireWS

March 29, 2019 at 2:05 am

Hello,

I would like to add an “Add to Google Calendar” button next to 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

April 2, 2019 at 4:39 am

Hi there,

So do you have the code to generate an ‘Add to Google Calendar’ button and need know how to add it to the EE output?

EE use the FHEE__espresso_list_of_event_dates__datetime_html filter to hook in and add the generate_add_to_iCal_button callback to generate and output the ical button your see now.

So you could hook into that same hook at a later (or earlier if wanted) priority and add your own button.


WildfireWS

April 13, 2019 at 1:50 am

That’s what we’re actually asking, the code to generate an ‘Add to Google Calendar’ button in an event listing page. I remember we have that button before in event listing for EE3. When someone registers, they would just click that button and it automatically added on their calendar. Does the EE4 also has this? Would like to ask if it can be manually added via code on a wordpress page?


Tony

  • Support Staff

April 15, 2019 at 3:32 am

EE3 and EE4 both have a link to an .ics file in a very similar format, so the functionality should be the same.

In EE3 it’s this link – https://monosnap.com/file/xHJy2XS0t9ioCjVANeLNcN9YbhgyC3

In EE4 it’s this – https://monosnap.com/file/tN3bmb7Q6FIvYoieQvpiSgiBy8YWQE

Clicking either of those links will either download the ICS or opening it automatically depending on your browser settings.

Is that not what you are looking for?

Viewing 3 reply threads

The support post ‘How to add "Add to Google Calendar" button on event listings’ 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