Home › Forums › Calendar Products › Events Calendar PRO › Add image or icon to Events List Advanced Widget
- This topic has 9 replies, 3 voices, and was last updated 13 years, 3 months ago by
Jonah.
-
AuthorPosts
-
November 27, 2012 at 12:37 pm #28571
Summer
ParticipantIs it possible to have an image/icon appear next to each event (potentially set through the featured image section of each individual event)?
Ideally we would love to have an icon of a calendar with the month and date displayed to the left of the event title. If this is possible then I would need to remove the month, date year and only display the start/end time of the event.November 27, 2012 at 1:39 pm #28578Jonah
ParticipantHi Summer,
You can modify the template of this widget by making a copy of /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php and placing in an ‘events’ folder in your active theme. Then, take a look at this tutorial for how to include the featured image from an event in our Next Event Widget: /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php – the instructions are very similar for this other widget. You’ll just need to figure out where to place the code.
Does that help?
– Jonah
November 28, 2012 at 10:14 am #28634javier
ParticipantHi Jonah! (and Summer!)
When I replace the code, it just make appear the featured image of the first event…. I would like to make appear the featured image o each event… where could I replace the code to achieve it? Any idea of the code or where to place in the code? Thanks Jonah!November 29, 2012 at 9:52 am #28698Jonah
ParticipantDecember 1, 2012 at 5:23 pm #28805javier
ParticipantHi Jonah!
http://snippi.com/s/fyykspp
And this is the link where you can see the widget working: refresssh.com
Thanks!December 3, 2012 at 4:15 pm #28863Jonah
ParticipantHi Javier,
Here is an example of your code with the addition of code to display the events featured image: http://snippi.com/s/bm2fbhp
I also forgot to link to the tutorial I mentioned above. Here is that link: https://theeventscalendar.com/how-to-show-featured-thumbnails-in-the-next-events-widget/
Does that help?
– Jonah
December 4, 2012 at 10:08 am #28925javier
ParticipantHi Jonah!
Thanks, I saw the tutorial and I made it work before writing my question here, 🙂 . But I need to make each featured image appears per each event, not just the first image of the first event…I tried to modify the code, inserting the tutorial’s code in other places of the widget code but I can´t achieve to do what I need.
Any idea? Thanks!December 5, 2012 at 10:55 am #28991Jonah
ParticipantHi Javier,
The code is good but there appears to be a bug related to featured images and recurring events. Are you working with recurring events?
– Jonah
January 9, 2013 at 4:18 pm #30526javier
ParticipantYes. 🙂
January 14, 2013 at 9:08 am #30775Jonah
ParticipantHi Javier,
So here’s the scoop. The current functionality with how featured images work with recurring events is as follows:
1. If you set a featured image for a recurring event, it will set that image for all the events.
2. If you change the featured image for one of the events, even if you choose to only apply the changes to the one event, it will update all the events in the recurring series. We are still looking at this as a possible bug and how to handle it but it’s going to have to wait until after 3.0 as of now.
3. The workaround for this is to then change the featured image for the one event that you broke out of the recurring series.
4. Another option would be to try using something like http://www.advancedcustomfields.com/ for setting a custom image for events. I’m not quite sure how this will work for breaking an event out of a recurring series, but it’s worth a try.Sorry I can’t offer up more here Javier. Let me know if you have any questions.
Cheers,
Jonah -
AuthorPosts
- The topic ‘Add image or icon to Events List Advanced Widget’ is closed to new replies.
