Support

Home Forums Event Espresso Premium Customizing the upcoming event widget

Customizing the upcoming event widget

Posted: January 18, 2018 at 10:28 am

Viewing 3 reply threads


The Shed

January 18, 2018 at 10:28 am

Hi There, I have followed the instructions elsewhere on the forum and copied the content of the upcoming event widget into my own custom plugin. Which is working OK, but I’m stuggling to remove the time from the event list. All I want to display with my custom widget is the list of upcoming events and their dates in a list. Can you point me how to achive this? Thanks


Josh

  • Support Staff

January 19, 2018 at 7:54 am

Hi there,

You actually do not need to copy the content of the upcoming event widget into your own custom plugin to accomplish this. Instead, you can add the following to your custom plugin:

https://gist.github.com/joshfeck/a126be7f77c521e31ef26fdc3586e818


The Shed

January 19, 2018 at 8:14 am

Thanks, thats almost what I need, I’ve added this code to the plugin, but its still got the ical icon which I don’t need and the event name gets repeated twice, see https://www.bloominggreenflowers.co.uk/flower-arranging-courses/ Is it possible to use addfliter to remove these too?

Thanks


Josh

  • Support Staff

January 19, 2018 at 8:50 am

Hi again,

That’s actually not the event name being repeated, it’s the event name followed by the datetime name. If you edit the events and remove the titles that were input for the datetimes those will no longer display. The iCal icon can be removed by adding this code to your functions plugin:

https://eventespresso.com/wiki/useful-php-code-snippets/#no-ical

Viewing 3 reply threads

The support post ‘Customizing the upcoming event widget’ 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