How to display the thumbnail in upcoming events

Home Forums Calendar Products Events Calendar PRO How to display the thumbnail in upcoming events

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18805
    mobloggy
    Participant

    https://theeventscalendar.com/support/forums/topic/how-to-get-article-image-to-appear-in-events-listing/
    I see this was discussed in a prior thread but I am new to php and have tried inserting it in a couple places but none seem to be right. Could you please tell me exactly where insert the code you provided to the event thumbnails (featured image) will show up. THANKS

    #18815
    Jonah
    Participant

    Hi Shannon,

    If you open up your copy of list.php (that you copied to an ‘events’ folder in your theme), just create some empty lines around say after line 37 which is calling the_title() and add this: https://gist.github.com/ea100a29ad0300f08aae

    That will simply insert the thumbnail but you’ll need to add the proper CSS to get everything looking the way you want.

    I hope that helps!

    #18817
    mobloggy
    Participant

    Thanks for you help! However, that didn’t work for me. I put the code right at the end between “title” and

    <?php the_title('‘, ‘‘); ?>

    What did I do wrong? THANKS!!

    #18818
    mobloggy
    Participant

    woah that didn’t post right— I put it right above

    #18853
    Jonah
    Participant

    Hi Shannon, we have sucky code posting abilities in the forum still and will be improving them some day. For now, please post code at http://pastie.org / http://pastebin.com or http://gist.github.com

    Thanks,
    Jonah

    #976747
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to display the thumbnail in upcoming events’ is closed to new replies.