I would like to re-order the way my event list page displays the details of events. My page can be found here: http://sjjuniortour.com/tournaments/ (I updated the slug to use tournaments instead of events).
I would like “Event Details” to be removed/hidden, and “Upcoming Dates & Times” and “Event Location” to move above the “Ticket Options”. Has anybody been able to do this? Would you mind telling me what files I need to update?
I am assuming there are some files I will need to copy into my template folder but as of yet, I can’t figure out what files I need to change.
I already know how to create child themes and the like. What would be helpful is knowing specifically how this data is being called in a particular order, and where I can change that order.
Sure no problem! I wasn’t sure if you had seen those.
If you look in the Espresso_Arabica_2014 folder you’ll see a handful of templates.
The event list page uses archive-espresso_events.php and that file calls content-espresso_events.php which in turn calls specific templates depending on if its a single event page or the event list page.
So I want to change the order of the files on the main “events” page (whose slug I updated to be /tournaments using a snippet). I tried reordering the “get_templates” in the “content-espresso_events.php” file but had no luck in changing the order of my http://sjjuniortour.com/tournaments/ page to be:
<?php
// allow other stuff
do_action( 'AHEE__archive_espresso_events_template__before_loop' );
// Start the Loop.
while ( have_posts() ) : the_post();
// Include the post TYPE-specific template for the content.
//espresso_get_template_part( 'content', 'espresso_events' );
?>
<!– HEADER –>
<h2>
<?php the_title(); ?>
</h2>
<!– /HEADER –>
<!– EVENT DATE & TIMES –>
<div class="event-datetimes">
<h4 class="event-datetimes-h3 ee-event-h3">
<span class="dashicons dashicons-calendar"></span><?php _e( 'Tournament Date & Time', 'event_espresso' ); ?>
</h4>
<?php espresso_list_of_event_dates( $post->ID );?>
</div>
<!– /EVENT DATE & TIMES –>
else :
// If no content, include the "No posts found" template.
espresso_get_template_part( 'content', 'none' );
endif;
I’m sure there are simpler solutions but that is what worked for me. Another question, how do I remove the language “* Please note that a maximum number of 10 tickets can be purchased for this event per order.” and the “show details+” link? Once I get rid of those I will be good to go.
<?php
// allow other stuff
do_action( ‘AHEE__archive_espresso_events_template__before_loop’ );
// Start the Loop.
while ( have_posts() ) : the_post();
// Include the post TYPE-specific template for the content.
//espresso_get_template_part( ‘content’, ‘espresso_events’ );
?>
<!– HEADER –>
<h2>
<?php the_title(); ?>
</h2>
<!– /HEADER –>
<!– EVENT DATE & TIMES –>
<div class=”event-datetimes”>
<h4 class=”event-datetimes-h3 ee-event-h3″>
<span class=”dashicons dashicons-calendar”></span><?php _e( ‘Tournament Date & Time’, ‘event_espresso’ ); ?>
</h4>
<?php espresso_list_of_event_dates( $post->ID );?>
</div>
<!– /EVENT DATE & TIMES –>
else :
// If no content, include the “No posts found” template.
espresso_get_template_part( ‘content’, ‘none’ );
endif;
[/code]
I’m sure there are simpler solutions but that is what worked for me. Another question, how do I remove the language “* Please note that a maximum number of 10 tickets can be purchased for this event per order.” and the “show details+” link? Once I get rid of those I will be good to go.
<?php
// allow other stuff
do_action( ‘AHEE__archive_espresso_events_template__before_loop’ );
// Start the Loop.
while ( have_posts() ) : the_post();
// Include the post TYPE-specific template for the content.
//espresso_get_template_part( ‘content’, ‘espresso_events’ );
?>
<!– HEADER –>
<h2>
<?php the_title(); ?>
</h2>
<!– /HEADER –>
<!– EVENT DATE & TIMES –>
<div class=”event-datetimes”>
<h4 class=”event-datetimes-h3 ee-event-h3″>
<span class=”dashicons dashicons-calendar”></span><?php _e( ‘Tournament Date & Time’, ‘event_espresso’ ); ?>
</h4>
<?php espresso_list_of_event_dates( $post->ID );?>
</div>
<!– /EVENT DATE & TIMES –>
else :
// If no content, include the “No posts found” template.
espresso_get_template_part( ‘content’, ‘none’ );
endif;
[/code]
I’m sure there are simpler solutions but that is what worked for me. Another question, how do I remove the language “* Please note that a maximum number of 10 tickets can be purchased for this event per order.” and the “show details+” link? Once I get rid of those I will be good to go.
The support post ‘Reordering & Adding Details on Event List Page – EE4’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.