Home › Forums › Calendar Products › Events Calendar PRO › Thumbnail in calendar grid
- This topic has 7 replies, 3 voices, and was last updated 12 years, 9 months ago by
Barry.
-
AuthorPosts
-
July 24, 2013 at 11:46 pm #57026
bluecafe
ParticipantHi there
In the calendar grid view I need to add a thumbnail for every event. I have already seen this discussion:
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
AndreasJuly 25, 2013 at 6:56 am #57064snorton
ParticipantWhat 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):
July 25, 2013 at 11:55 am #57163bluecafe
ParticipantHi
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,
AndreasJuly 26, 2013 at 1:20 am #57278bluecafe
ParticipantHi 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,
AndreasJuly 26, 2013 at 6:07 am #57305bluecafe
ParticipantThis was my fault. Now it runs with code
<a href="" class="url">July 26, 2013 at 6:12 am #57306bluecafe
Participantecho the_post_thumbnail(array(90,90));
embedded in the link text.
Regards,
AndreasJuly 26, 2013 at 6:40 am #57314snorton
ParticipantI’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?
July 29, 2013 at 3:22 pm #57640Barry
MemberHi 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 🙂
-
AuthorPosts
- The topic ‘Thumbnail in calendar grid’ is closed to new replies.
