Support » Plugin: The Events Calendar » How to add (tumbnail) image to events list

  • Resolved wassie

    (@wassie)


    I wonder if it is possible to add images to the events list. Now only the text and other information is showing, but I would love to know how to add images.

    [ No bumping please. ]

Viewing 1 replies (of 1 total)
  • Plugin Author András Guseo

    (@aguseo)

    Hey @wassie,

    Thanks for reaching out and sorry for the long wait for an answer.

    That should be possible quite easily. You will need to create a template override for the list view. Here’s a link to our Themer’s Guide which should get you started on that.

    I would suggest overriding the content.php template to make that happen. It basically boils down to this:

    1. Make a copy of the content.php template. It is located at wp-content/plugins/the-events-calendar/src/views/list/content.php

    2. Make a new folder in your theme called tribe-events

    3. Make a new folder in that one called list

    4. Drop your copied content.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs.

    The tribe_event_featured_image() function should get you the featured image of the event.

    Will this work for you? Please let me know. 🙂

    Cheers,
    Andras

Viewing 1 replies (of 1 total)
  • The topic ‘How to add (tumbnail) image to events list’ is closed to new replies.