Events List View

Home Forums Calendar Products Events Calendar PRO Events List View

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #24621
    Bonnie
    Member

    Is there any way to suppress the right column in the events list view? I don’t need all that information as all our events happen in the same location. Can you add the time to the event date line in the Events List view? Thanks.

    #24625
    Barry
    Member

    Hi Bonnie!

    Anything is possible. You would need to do some template customization to make this happen however.

    The first thing to check out is our Themer’s Guide – it’s got all the information you need to do this. In particular you probably want to edit a custom version of the list.php view.

    Hope that gets you on track!

    #24730
    Bonnie
    Member

    Followed the Themer’s Guide and added an events folder to my theme. Copied list.php, then opened it in an editor and tried to figure out what lines were controlling the right column. I’m not at all knowledgeable of PHP but managed to remove the content from the right-column. However, the list of upcoming events is now 2-column and not in the right order. Can you possibly point me to the specific lines in line.php that control the right column entries and should be removed? I would greatly appreciate it. Thanks.

    #24732
    Barry
    Member

    Does this work for you?

    http://pastebin.com/5n6QYxkw

    It’s a modified list.php template with all the event meta data that normally is displayed in a table for each entry removed.

    #24743
    Bonnie
    Member

    Oh yes it does. Thanks. I did notice that the event description doesn’t span the width of the page. I’ll use Firebug to see if I can change the style so that the right margin/padding is smaller. Thanks for your help. I was close doing it myself, but obviously missed something.

    #24744
    Bonnie
    Member

    I was able to fix the event entry so that it spans more of the page. One last thing – how would I add the event time (start time) either after the event date or on a line below it? Is this possible given my limited knowledge of PHP? Thanks again.

    #24749
    Barry
    Member

    That’s easily accomplished. If you look in the same template you should be able to find the following template tag:

    tribe_get_start_date( null, false );

    That displays the date. We can also make it display the time by changing it very slightly:

    tribe_get_start_date( null, true );

    Something to bear in mind is that this only displays for the first event on each date. For instance if you have two events today, one at 2.00pm and one at 5.00pm then by default the date only displays for the first event. If you want to change that you would remove the lines above and below that template tag (see this paste http://pastebin.com/rqYgTKFm for an example).

    #24920
    Bonnie
    Member

    That worked, but there is no space between the date and the time. How can I add either space – space OR just a few spaces before the time?

    #24935
    Barry
    Member

    Can you provide a link for me to look at? I’m not sure how it is possible for there to be no space unless another piece of code is filtering this.

    #25224
    Bonnie
    Member

    Here’s the link:
    http://www.stjathenaeum.org/WordPress/events/upcoming/
    Looks like there might be a space but for readability I need it to read: October 12, 2012 – 7:00PM (with some delimiter between date and time).

    #25230
    Barry
    Member

    Yep, there is a space in there. If you need a dash you could try this: http://pastebin.com/B2HiwRA2

    #25324
    Bonnie
    Member

    Having trouble inserting the snippet in the right place. Here’s the list.php code:

    Where do I substitute the snippet?

    Thanks.

    #25327
    Barry
    Member

    Hi Bonnie – I can’t see the code that you posted (please use a service like Gist or Pastebin if you want to post code in the forum).

    Please see this example of a modified list.php template: http://pastebin.com/Z88vQBQs (note the code placed within the h4.event-day tags) … you may need to modify this to preserve any other tweaks you have made – or simply use it as a guide 🙂

    #25454
    Bonnie
    Member

    I think that these are the lines of code in list.php that I should change, but when I tried it didn’t work.
    http://pastebin.com/kW9MRjfq

    #25456
    Barry
    Member

    Right – so I’ve amended that snippet for you: http://pastebin.com/MhJa3mZ6 … hopefully that gets you on track.

Viewing 15 posts - 1 through 15 (of 20 total)
  • The topic ‘Events List View’ is closed to new replies.