Thumbnail in calendar grid

Home Forums Calendar Products Events Calendar PRO Thumbnail in calendar grid

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #57026
    bluecafe
    Participant

    Hi there

    In the calendar grid view I need to add a thumbnail for every event. I have already seen this discussion:

    Add Thumbnail to Calendar Grid View

    But I can’t find the mentioned file table.php. I guess, that I have to modify month.php. But how?

    Thank you in advance for your help.

    Best regards
    Andreas

    #57064
    snorton
    Participant

    What version of ECP are you running? In the latest version, you’ll actually want to modify the single-day.php file found in views/month/single-event.php, by making a copy to wp-content/[your theme]/tribe-events/month/single-event.php

    Depending on how you want to display the picture, you’ll want to modify this a bit, but you should add this code after line 27 of single-event.php (which is after the title of each event on the month view):

    http://pastebin.com/NF4f2PD5

    #57163
    bluecafe
    Participant

    Hi

    That was exactly, what I was searching for! Thank you very much for your very helpful answer. By the way: I’m using ECP 3.04.

    Best regards,
    Andreas

    #57278
    bluecafe
    Participant

    Hi there

    After I have changed the code, the thumbnail will be displayed in the grid. That’s great. But when I open an event by clicking in the grid, the event details cannot be opened (error 404 – site cannot be found). What I have seen is, that the url of the event details has been changed:

    /event/memademontag/2013-07-22/ (without code change)
    /event/2013-07-22/ (with code change).

    It seems, that the title of the event will not be transmitted anymore.

    What I have done:
    – Copy of /plugins/the-events-calendar/views/month/single-event.php
    – Add code after line 27:

    – Paste modified single-event.php in /themes//tribe-events/month

    What can be wrong?

    Thank you for your help.

    Best regards,
    Andreas

    #57305
    bluecafe
    Participant

    This was my fault. Now it runs with code

    <a href="" class="url">

    #57306
    bluecafe
    Participant

    echo the_post_thumbnail(array(90,90));
    embedded in the link text.
    Regards,
    Andreas

    #57314
    snorton
    Participant

    I’m not able to reproduce this 404 you’re getting. These forums have a tendency to screw up posted code, can you use pastebin or similar to paste the content of your single-event.php file?

    #57640
    Barry
    Member

    Hi Andreas,

    But I can’t find the mentioned file table.php.

    As snorton said that template has gone, so you were probably viewing a thread that related to a previous edition of the plugin (thanks snorton!).

    It’s also the case that the forum software doesn’t handle code in an intuitive manner – definitely share what you’ve done with a link to the code on Pastebin or Gist, though 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Thumbnail in calendar grid’ is closed to new replies.