Home › Forums › Calendar Products › Events Calendar PRO › Edit list view
- This topic has 10 replies, 3 voices, and was last updated 9 years, 9 months ago by
Pau.
-
AuthorPosts
-
June 20, 2016 at 2:00 am #1129129
Pau
ParticipantDear TECPRO,
I know you don’t provide advanced coding and I already referred to the Themer’s guide
My question is quite simple: Could you please just point to which file need to be edited in order to alter how list view info is displayed?
see example page: http://79.170.44.126/ref-spainculturescience.co.uk/events/list/
I want to change:
Design: Dalí and Tusquets land at BD
24 May – 31 Dec
Room One, 12-14 Berry Street
London, EC1V 0AU United Kingdom + Google Mapto
Design: Dalí and Tusquets land at BD
24 May – 31 Dec | Room One | Londonmany thanks
June 20, 2016 at 6:59 am #1129231George
ParticipantHey @Pau,
Thanks for reaching out and for acknowledging the limitations of our support. While I will indeed not be able to help with any code customizing questions specifically, I’m happy to help here!
Just to be 100% clear, are you referring to the block of event information that is seen right under the List View event title? What I mean is the block of text that I’ve highlighted here with the red box:
☝️ I just want to ensure I understand your goals so that I can best help out here!
Thank you,
GeorgeJune 20, 2016 at 7:38 am #1129242Pau
ParticipantHi George, yes that’s right. I want to edit this block on list view mode
I want to edit this block to keep consistency with the rest of (already edited) events views on the site (as in photo view or single event)
thanks
June 20, 2016 at 10:33 am #1129386George
ParticipantThanks for confirming this!
That section of information is found in The Events Calendar here:
the-events-calendar/src/views/list/single-event.phpThe specific section you are referring to starts with this line of code:
<?php do_action( 'tribe_events_before_the_meta' ) ?>And ends with this line of code:
<?php do_action( 'tribe_events_after_the_meta' ) ?>I hope this information helps!
GeorgeJune 21, 2016 at 1:59 am #1129694Pau
ParticipantHi George, thanks
Ok, let’s see, I’m a little confused. I already edited this PHP file in order to have the single events to display like I want it.
I see, near the bottom, this section:
<!-- .tribe-events-single-event-description --> <?php do_action( 'tribe_events_single_event_after_the_content' ) ?> <!-- Event meta --> <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?> <?php tribe_get_template_part( 'modules/meta' ); ?> <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?> </div> <!-- #post-x -->Is that what you mean?
will that affect other views? Or just the list view? I don’t see how?
Sorry to be a pain, I really appreciate your help
thanks
PS: the previous edited bit is this one:
<div class="tribe-events-schedule tribe-clearfix"> <?php echo tribe_events_event_schedule_details( $event_id, '<h3>', '</h3>' ); ?> | <h3><?php echo tribe_get_venue( $event_id ); ?></h3> | <h3><?php echo tribe_get_city( $event_id ); ?></h3> <?php if ( tribe_get_cost() ) : ?> <span class="tribe-events-divider">|</span> <span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span> <?php endif; ?> </div>June 21, 2016 at 7:17 pm #1130210George
ParticipantHey Pau,
This file will only alter the display of events in the List View:
the-events-calendar/src/views/list/single-event.phpTo highlight the specific place in that file where you can modify the details you are referring to, I have put the contents of that file into a Gist here ? https://git.io/vo6HV
☝️ Please see lines 42 through 61 in that Gist. That’s where those details are generated; tinker and customize, and let me know if this helps!
Sincerely,
GeorgeJune 28, 2016 at 4:35 am #1132798Pau
ParticipantOf course, you are totally tight, my mistake! Apologies
So, I’ve got the single-event.php (on list folder)
and I’m looking at:
<?php do_action( 'tribe_events_after_the_event_title' ) ?> <!-- Event Meta --> <?php do_action( 'tribe_events_before_the_meta' ) ?> <div class="tribe-events-event-meta"> <div class="author <?php echo esc_attr( $has_venue_address ); ?>"> <!-- Schedule & Recurrence Details --> <div class="tribe-event-schedule-details"> <?php echo tribe_events_event_schedule_details() ?> </div> <?php if ( $venue_details ) : ?> <!-- Venue Display Info --> <div class="tribe-events-venue-details"> <?php echo implode( ', ', $venue_details ); ?> </div> <!-- .tribe-events-venue-details --> <?php endif; ?> </div> </div><!-- .tribe-events-event-meta --> <?php do_action( 'tribe_events_after_the_meta' ) ?>I already feel Im abusing your kindness, but dare I ask what line of code to change:
Design: Dalí and Tusquets land at BD
24 May – 31 Dec
Room One, 12-14 Berry Street
London, EC1V 0AU United Kingdom + Google Mapto
Design: Dalí and Tusquets land at BD
24 May – 31 Dec | Room One | LondonI’ve tried the following code and then replaced the file via FTP as instructed (theme > events calendar > list > single event
| <h3><?php echo tribe_get_venue( $event_id ); ?></h3> | <h3><?php echo tribe_get_city( $event_id ); ?>But it didn’t work. I have now restored it to normal.
I’ll totally understand if you feel this goes beyond support, but here we are…
Endless thanks
🙂
June 28, 2016 at 11:22 am #1133085George
ParticipantThis reply is private.
June 29, 2016 at 1:25 am #1133317Pau
ParticipantHi George, thank you very much for all your help!
June 29, 2016 at 10:24 am #1133590George
ParticipantThank you for being respectful and understanding of our policies, @Pau—I’m sorry that I wasn’t able to help with the final aspect of these issues.
I sincerely encourage you to set up a local site if possible—it’s worth the hassle!
Best of luck with your project, and please open a new thread any time if other issues arise.
Sincerely,
George -
AuthorPosts
- The topic ‘Edit list view’ is closed to new replies.

