Support Forums

Featured image thumbnail in events list

  • Posts: 27 Topics: 7
    | Permalink

    Hi guys,

    When viewing upcoming events as a list is it possible to make a featured image thumbnail appear left aligned in the description area? I have put a thumbnail image in the event description itself which then shows up in the events list but its ultimately the same as the featured image so if you view the single event then you see the big featured image plus the thumbnail again.

    Do you have any suggestions here please?

    Thanks!

    Posts: 4237 Topics: 87 Answers: 467
    | Permalink

    Hi Graeme. Thanks for reaching out here. If I understand your issue correctly, might Jonah’s solution in this thread (https://theeventscalendar.com/support/forums/topic/how-to-display-the-thumbnail-in-upcoming-events/) be of value? Let me know if not.

    Posts: 27 Topics: 7
    | Permalink

    Thank you for the reply!

    This has added the event Feature Image to the listing above the event information but I was looking more for a a neat little thumbnail, say at 100-200px left aligned next to the event text, rather than the full size image above. Any thoughts on how to do that?

    Also, I have not been creating events folders in my theme files!? I have just been editing the list.php file as I find it. Assume thats ok too? Suppose its not great for back ups.

    Posts: 4237 Topics: 87 Answers: 467
    | Permalink

    Hey Graeme. Gotcha; not positive that we’ll be able to give you the exact solution here but I have asked a dev to take a look and try to point you in the right direction. Stay tuned on that end.

    You can continue doing things as you are now, but the downside in doing so is that when you next update the plugin these will be overwritten and you’ll have to add them again. Should be fine so long as you have the code handy but may take some unnecessary time…by making the copy and modifying that, you know your changes will forever be preserved.

    Posts: 13575 Topics: 5 Answers: 973
    | Permalink
    Correct Answer

    Hey Graeme. It sounds like you didn’t have any problems implementing Jonah’s code, so what I am going to suggest is just making a slight amendment to that code – the part where you call the_post_thumbnail(), everything else can stay the same.

    I posted a few different snippets over on Pastebin, have a play with those and figure out which approach you feel most comfortable with. If you need any more help please just shout back!

    http://pastebin.com/5KpciyPA

    Posts: 13575 Topics: 5 Answers: 973
    | Permalink

This thread hasn’t seen any activity for quite some time and we are not accepting further replies.

If you need further help with this or any other issue, please create a new topic (you can of course include a link to this one if that helps to provide additional context) and one of the team will be only too happy to help.