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?
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.
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?
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.
Support forum for Event Espresso 3 and Event Espresso 4.