Event list & Single Event Template formatting

Home Forums Calendar Products Events Calendar PRO Event list & Single Event Template formatting

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28381
    Erin
    Member

    Hello,
    I just upgraded to PRO, and am having difficulty finding out how to modify/format the default template for the event list and single event. Our site is using the twenty-eleven theme:
    1) Event List:
    a) how do I remove the event list and calendar buttons at the top ?
    b) can I remove the start and end dates in the side event details box for all day events? These fields are redundant as the dates are included at the top. But I’d like to include the start and end time for our events that don’t run all day.
    c) Can i modify the “continue reading ” to ‘More info’
    2. Single event template:
    a) All I want listed in the event details box is the start and end dates, start and end times, cost and location fields. How do I delete the “event”, “category” and “updated” fields entirely?
    b) How can I make the event details box two columns? (it seems as though it is, but for some reason the data is all scrunched in the left column)
    Thank you!

    #28398
    Jonah
    Participant

    Hi Erin,

    Most all the changes you are going to want to make are tied to working with template views which you can find an overview of here: https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/#views

    To answer more specifically:

    1a. Make a copy of /wp-content/plugins/the-events-calendar/views/list.php and place in an ‘events’ folder in your theme. You can either remove lines 17-20 for the buttons or hide them via CSS.

    1b. You’ll need to play around with the logic a bit to get this right but you should be able to use our tribe_get_all_day() function to detect whether or not the event is an all day event and display the date/time accordingly. FYI, we have a wealth of template tags documented here: https://theeventscalendar.com/support/documentation/

    1c. Our plugin just uses the native WordPress functions for the_content() or the_excerpt() – you can read more on the_content() and changing the read more text here: http://codex.wordpress.org/Function_Reference/the_content

    2a. Make a copy of /wp-content/plugins/the-events-calendar/views/single.php and place in an ‘events’ folder in your theme and make any changes you want…

    2b. You’ll probably need to adjust the CSS to modify the widths in your template.

    I hope that helps but let me know if you need anything else!

    – Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Event list & Single Event Template formatting’ is closed to new replies.