Home › Forums › Calendar Products › Events Calendar PRO › Front End Calendar View
- This topic has 8 replies, 4 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
February 12, 2012 at 8:11 pm #15050
Ron
MemberIs there a way to make the calendar on the front end http://www.stmarksdelaware.com/events/ display the time as well as the event title? Searched the FAQ and closest I came was to check WP settings — I did and found nothing that would affect the calendar like that. Searched the forum as well. Thanks!
February 13, 2012 at 9:07 am #15083Rob
MemberHey Ron. What details are you trying to display, specifically? And in what format? Based on how I understand your issue so far, this should be controllable using the overall WP settings…but let me know what you’re aiming for and I’ll provide more specific guidance after recreating it on my end.
February 13, 2012 at 1:42 pm #15096Ron
MemberThanks, Rob. Specifically, I would like the calendar, at the link above, to display the Event name AND the time – either the start time or the start and end time. I realize you can just hover over it, but my client would like to see the times on the calendar as well as the event name.
February 13, 2012 at 4:30 pm #15106Rob
MemberAh, gotcha. Thanks for confirming Ron. Let me see if our dev Jonah can point you in the right direction on this front, when he hits the forums next.
February 13, 2012 at 10:04 pm #15130Jonah
ParticipantHi Ken,
What you’ll want to do here is override the table.php view that renders the content in the calendar view. To do this make a duplicate copy of /wp-content/plugins/the-events-calendar/views/table.php in an ‘events’ folder in your theme.
Next find line 147 and you’ll see it’s just a basic HTML link. All we need to do is add the event date/time and we can do that with the plugin template function: echo tribe_get_start_date();
Replace the code on that with this: http://pastebin.com/hVuD9aJy
That will include the function. If you need to change the date/time format just take a look at our documentation on the function: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/#functiontribe_get_start_date
I hope that helps.
February 15, 2012 at 3:02 pm #15228Ron
MemberThanks, Jonah. I’ll try this out and get back if I need a bit more … Ron
February 15, 2012 at 3:11 pm #15229Ron
MemberOK – this is what I see for line 147:
$end_as_ts = (int)strtotime( $end );
I’m to replace that with this?:
<a href="”> |
I ask because what I’m replacing doesn’t look like a basic HTML link.
February 15, 2012 at 3:56 pm #15230Jonah
ParticipantOoops, sorry about that Ron and sorry about calling you Ken 🙂 Must have mixes up threads… I meant line 139.
July 4, 2015 at 5:00 pm #975673Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Front End Calendar View’ is closed to new replies.
