Edit list view

Home Forums Calendar Products Events Calendar PRO Edit list view

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1129129
    Pau
    Participant

    Dear 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 Map

    to

    Design: Dalí and Tusquets land at BD
    24 May – 31 Dec | Room One | London

    many thanks

    #1129231
    George
    Participant

    Hey @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,
    George

    #1129242
    Pau
    Participant

    Hi 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

    #1129386
    George
    Participant

    Thanks for confirming this!

    That section of information is found in The Events Calendar here:

    the-events-calendar/src/views/list/single-event.php

    The 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!
    George

    #1129694
    Pau
    Participant

    Hi 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>
    #1130210
    George
    Participant

    Hey Pau,

    This file will only alter the display of events in the List View:

    the-events-calendar/src/views/list/single-event.php

    To 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,
    George

    #1132798
    Pau
    Participant

    Of 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 Map

    to

    Design: Dalí and Tusquets land at BD
    24 May – 31 Dec | Room One | London

    I’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

    🙂

    #1133085
    George
    Participant

    This reply is private.

    #1133317
    Pau
    Participant

    Hi George, thank you very much for all your help!

    #1133590
    George
    Participant

    Thank 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Edit list view’ is closed to new replies.