Home › Forums › Calendar Products › Events Calendar PRO › Events List View
- This topic has 19 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
September 6, 2012 at 7:28 am #24621
Bonnie
MemberIs 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.
September 6, 2012 at 7:36 am #24625Barry
MemberHi 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!
September 9, 2012 at 1:37 pm #24730Bonnie
MemberFollowed 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.
September 9, 2012 at 4:19 pm #24732Barry
MemberDoes this work for you?
It’s a modified list.php template with all the event meta data that normally is displayed in a table for each entry removed.
September 10, 2012 at 6:27 am #24743Bonnie
MemberOh 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.
September 10, 2012 at 6:56 am #24744Bonnie
MemberI 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.
September 10, 2012 at 10:58 am #24749Barry
MemberThat’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).
September 12, 2012 at 8:40 am #24920Bonnie
MemberThat 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?
September 12, 2012 at 12:35 pm #24935Barry
MemberCan 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.
September 17, 2012 at 9:41 am #25224Bonnie
MemberHere’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).September 17, 2012 at 11:21 am #25230Barry
MemberYep, there is a space in there. If you need a dash you could try this: http://pastebin.com/B2HiwRA2
September 18, 2012 at 10:07 am #25324Bonnie
MemberHaving trouble inserting the snippet in the right place. Here’s the list.php code:
Where do I substitute the snippet?
Thanks.
September 18, 2012 at 10:47 am #25327Barry
MemberHi 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 🙂
September 20, 2012 at 8:58 am #25454Bonnie
MemberI 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/kW9MRjfqSeptember 20, 2012 at 9:19 am #25456Barry
MemberRight – so I’ve amended that snippet for you: http://pastebin.com/MhJa3mZ6 … hopefully that gets you on track.
-
AuthorPosts
- The topic ‘Events List View’ is closed to new replies.
