Home › Forums › Calendar Products › Events Calendar PRO › How to totally remove image from the display of events using event_list widget
- This topic has 6 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
November 14, 2013 at 11:26 pm #76590
tmbond
ParticipantHello,
Kindly help. I do not want to display any featured image or other image when I display the widget value of event_list in a page. All I want to do is show Title and date of event. Any help would be very appreciated. Please kindly provide a step by step of what to do. I looked in the code but could not find any info that would point me to images or thumbnails. Thanks.November 15, 2013 at 7:56 am #76654Barry
MemberHi tmbond,
So I think you mean you want to remove featured images from the list view, is that correct? If so please check out our Themer’s Guide for an overview of how to customize The Events Calendar. Essentially though you probably want to locate and remove the following line in the list/single-event.php template:
<?php echo tribe_event_featured_image( null, 'medium' ) ?>Hope that helps!
November 15, 2013 at 9:55 am #76688tmbond
ParticipantHi Barry. Thanks for your response. But no, that’s not what I mean. I want to remove the image only from the event list in widget display, not from any where else. I have looked in the widget related files for the event list widget but could not find any reference to image or thumbnail
November 15, 2013 at 11:25 am #76697snorton
ParticipantIn your theme folder, create a directory named ‘tribe-events’ and within that an additional directory named ‘widgets.’ This is where you will want to place a copy of the file ‘list-widget.php’ (which can be found here: \wp-content\plugins\the-events-calendar\views\widgets\list-widget.php)
The kind folks at Modern Tribe have made it super easy to customize the template files for all different views by following very similar steps as I’ve just outlined.
From here, simply modify the list-widget.php file to display exactly what you want, how you want it.
Here’s a very simply implementation of this:
http://pastebin.com/kH48FUBfThis will output the title and start date & time of the event in the list widget. You can format the tribe_get_start_date() to display without the time by simply changing that part to this:
tribe_get_start_date(null,false)
or, if you want to specify the date format completely:
tribe_get_start_date(null, false, $format = ‘M d,y’) <– modify the format using standard php syntax
You could also essentially filter the output of the entire string via your functions.php file with the tribe_event_format_date template tag (http://docs.tri.be/Events-Calendar/function-tribe_event_format_date.html).
November 15, 2013 at 11:26 pm #76786tmbond
ParticipantSnorton, a bunch of thanks. This totally solved my problem.
November 18, 2013 at 6:44 am #76930Kelly
ParticipantThat’s great news, tmbond. 🙂 Snorton, thanks so much for your help!
July 7, 2015 at 6:29 am #982034Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How to totally remove image from the display of events using event_list widget’ is closed to new replies.
