Home › Forums › Calendar Products › Events Calendar PRO › Thumbnail Image on Event List Widget
- This topic has 3 replies, 2 voices, and was last updated 8 years ago by
projeto4d.
-
AuthorPosts
-
March 27, 2018 at 10:08 am #1489874
projeto4d
ParticipantI had the free version of the plugin before and thumnails were displaying on the EVENTS LISTS WIDGET. now that I Bought THE EVENTS CALENDAR POR its showing only the date for the event not the image thumbnail anymore.
How do I costumize the widget module theme so i can display the image thumbnail as before, instead of the date thumbnail for the event?
I searched around the foruns and found this: https://gist.github.com/ggwicz/251bdcebb7f9181737ec but the php file on my src site’s folder are have very different coding so it might be a solution for an onder version. Thats why i am asking support.
Please Sir. Help me.
-
This topic was modified 8 years, 1 month ago by
projeto4d. Reason: specifying that i bought the PRO PLUGIN, thats why it changed
March 28, 2018 at 11:35 am #1490983Sky
KeymasterVictor,
Looking at the Events widget in the Events Calendar, it does not appear to support event images. Was that maybe a feature of your theme? I see that Arvada has built in support for the Events Calendar.
Thanks,
SkyApril 13, 2018 at 2:53 pm #1507096projeto4d
ParticipantThe heme I am Using is AVADA. Yes id did suport The Events Calendar. But is there anything i can do in the plugin to replicate what the theme does in the free version?
Or else,
Is there a way to make the image thumbnails instead of the current date and month thunbnail? I just purchased to pro, u don’t whant to really revert back to free just because of this.
April 16, 2018 at 6:31 am #1508077Sky
KeymasterHi Victor,
From the Events Calendar side, it seems that the featured image will only show in the events list widget when the event is marked as a “featured event.”
If you would like to override this behavior and use the featured image for all events in the list, you will need to create a custom template. The template you need to copy and modify is in events-calendar-pro/src/views/pro/widgets/modules/single-event.php. You can place the copy of this file in [your-theme]/tribe-events/pro/widgets/modules/single-event.php.
Here is a snippet of what needs to be modified to get the image to display for all events that have one, on lines 33-36.
Change this:
if (
tribe( 'tec.featured_events' )->is_featured( $post_id )
&& get_post_thumbnail_id( $post_id )
) {
To this:
if (
get_post_thumbnail_id( $post_id )
) {
You will still need to remove the date icon and style to your needs, but this should get you going in the right direction. Check out the Themer’s Guide for more information on working with custom templates.
Hope that helps! Let us know if you have any other questions.
Thanks,
SkyMay 8, 2018 at 9:35 am #1525383Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
This topic was modified 8 years, 1 month ago by
-
AuthorPosts
- The topic ‘Thumbnail Image on Event List Widget’ is closed to new replies.
