Front End Calendar View

Home Forums Calendar Products Events Calendar PRO Front End Calendar View

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #15050
    Ron
    Member

    Is 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!

    #15083
    Rob
    Member

    Hey 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.

    #15096
    Ron
    Member

    Thanks, 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.

    #15106
    Rob
    Member

    Ah, 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.

    #15130
    Jonah
    Participant

    Hi 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.

    #15228
    Ron
    Member

    Thanks, Jonah. I’ll try this out and get back if I need a bit more … Ron

    #15229
    Ron
    Member

    OK – 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.

    #15230
    Jonah
    Participant

    Ooops, sorry about that Ron and sorry about calling you Ken 🙂 Must have mixes up threads… I meant line 139.

    #975673
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Front End Calendar View’ is closed to new replies.