Home › Forums › Calendar Products › Events Calendar PRO › display thumbnails on the Events List widget
- This topic has 5 replies, 2 voices, and was last updated 7 years, 11 months ago by Nico.
-
AuthorPosts
-
May 4, 2016 at 8:36 am #1110497PauParticipant
Hi, dear TEC,
Im sorry if I ask something obvious, but how come in one website this plugin shows the list with thumbnails and on the other not?
Both sites are build with Divi theme, I’m building both in parallel and have same settings (as far as I’m concerned)
Do you have any idea what may be causing this?
(I want to feature the list with thumbnails, but it would be good for me and others to know how to add / remove them) see both examples here:
http://79.170.44.126/ref-spainculturescience.co.uk/ (shows thumbnails)
http://217.199.187.196/chatspalace.com/ (doesn’t)May 4, 2016 at 9:48 am #1110579NicoMemberHi Pau,
Thanks for reaching out to us! Let’s see why this happens.
We have an article in place that shows how to add this images: Add thumbnails to upcoming events List Widget. Maybe Divi is doing something similar by default? Or maybe it’s an option of the plugin you need to activate? Also, have you checked that the events in the second website actually have featured image set?
Please let me know about it, also it might be a good idea to reach out to Divi support and ask what the default behaviour should be and how to activate the thumbnails if needed,
Best,
NicoMay 4, 2016 at 12:28 pm #1110658PauParticipantSorry
The code is for the TEC non PRo and Im not sure what you mean for “the events in the second website actually have featured image set”?
I apologise in advance, but can you point it out?
π
May 5, 2016 at 4:56 am #1110921NicoMemberHey Pau,
Thanks for following up!
The code for PRO is here: https://gist.github.com/ggwicz/251bdcebb7f9181737ec – it’s a link at the bottom of the article maybe no the clearest way of including it.
By the events in the second website actually have featured image set, I mean if the events listed in the list widget of the second site you listed (http://217.199.187.196/chatspalace.com/) actually have a featured image assigned.
Anyway, I’ve re-checked your sites and this seem to be working. Can you share the solution here?
Best,
NicoMay 5, 2016 at 5:38 am #1110935PauParticipantIn my case I added this snippet of code on the functions.php:
function custom_widget_featured_image() {
global $post;echo tribe_event_featured_image( $post->ID, ‘thumbnail’ );
}
add_action( ‘tribe_events_list_widget_before_the_event_title’, ‘custom_widget_featured_image’ );But still not clear how I end up there, and why thumbnails display in a different manner at both sites, so, work in progress…
π
May 5, 2016 at 7:15 am #1110967NicoMemberThanks for adding your solution Pau!
As suggested before it might be a good idea to reach out to theme authors and ask how this should work by default with Divi and how to enabled the thumbnails if needed. Anyway it’s great to hear you got it working π
Iβll go ahead and close out this thread, but if you need help with anything else please donβt hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘display thumbnails on the Events List widget’ is closed to new replies.