I’m attempting to change the display of the “List” view so that it appears more in blocks left to right instead of top to bottom. The problem that I am running into is that if I have more then two events in a month then it splits the second event into another block.
Screenshot of the calendar with firebug showing the HTML.
This is the list view loop file:
<div class=”tribe-events-loop”>
<div class=”year-block”>
<?php while ( have_posts() ) : the_post(); ?>
<?php do_action( ‘tribe_events_inside_before_loop’ ); ?>
<!– Month / Year Headers –>
<div class=”month-block”>
<?php tribe_events_list_the_date_headers(); ?>
<!– Event –>
<?php
$post_parent = ”;
if ( $post->post_parent ) {
$post_parent = ‘ data-parent-post-id=”‘ . absint( $post->post_parent ) . ‘”‘;
}
?>
<div id=”post-<?php the_ID() ?>” class=”<?php tribe_events_event_classes() ?>” >
<?php tribe_get_template_part( ‘list/single’, ‘event’ ) ?>
</div>
</div>
<?php do_action( ‘tribe_events_inside_after_loop’ ); ?>
<?php endwhile; ?>
</div>