Adding Events image thumbnail to Community Events list display

Home Forums Calendar Products Community Events Adding Events image thumbnail to Community Events list display

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1100501
    raindance
    Participant

    Hi Support,

    Could you please tell me how to display the events image from the add event form into the Community events list?

    Here is a mock up of what I’d like to do: https://flic.kr/s/aHskxYS5rw

    Thank you for your help!

    Tom

    #1100783
    Geoff
    Member

    Howdy Tom and welcome back to the forums — hope all is going well. šŸ™‚

    Good question. You can show the featured image by adding it to the template. Our Themer’s Guide has a thorough outline of how to customize the calendar templates, but it basically boils down to this:

    • Make a copy of theĀ event-list.php file. It’s located at /wp-content/plugins/events-community/src/views/community/event-list.php.
    • Make a new folder in your theme directory calledĀ tribe-events
    • Make a new folder in that one calledĀ community
    • Drop your copiedĀ event-list.php file into that last folder

    Now that that template is in your theme, you can modify it to suit your needs. In this case, call the featured image where you would like it to display in the template:

    <?php echo tribe_event_featured_image( $event_id, 'thumbnail', false ); ?>

    Will this work for you? Please let me know. šŸ™‚

    Cheers!
    Geoff

    #1107162
    Support Droid
    Keymaster

    This 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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding Events image thumbnail to Community Events list display’ is closed to new replies.