I wanted to add a widget to a wordpress web article that allowed readers to add the event to their calendars. I found the site called, “AddEvent“. Fabulous. Proving that doing one thing well is all a web service has to do.
This page records how I implemented this, and has an example event and widget.
The implementation comes in two parts, the reference to a script, which I would normally put in the HEAD section and the definition of the event which is HTML and needs to be located where you need the button/widget i.e. within the Post/Page content. I have placed the event definition into a code snip aka a custom field.
Date 30th March 2017 7pm. Trafalgar Sq., London, UK Nne N/A false DD/MM/YYYY aHNypeIjCzZMhgHEImya26521
N.B. This widget implementation does not offer a Facebook event since it needs a source and I have not set one up.