Template Customization Calendar Not Displaying

Home Forums Calendar Products Events Calendar PRO Template Customization Calendar Not Displaying

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #920112
    6600feet
    Participant

    Hey,

    Hoping I can get some help on an element that is causing me a problem. I am customizing the template for my homepage on a site. Basically I want the calendar view to display on the homepage of the site. I am following the directions in the template instructions https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/ and just can’t seem to get it to display correctly.

    For some reason the the day and month navigation display across the top, but the actual calendar loop is not displaying. I have to be doing something incorrectly. Can anyone point me in the right direction. Here is what I mean in a screen grab. https://www.dropbox.com/s/37yqiniiupkz5wj/calendar.jpg?dl=0

    Also here is the code I am using.

    Thanks so much for any suggestions about what I am doing wrong.

    <?php
    /**
    * Month View Content Template
    * The content template for the month view of events. This template is also used for
    * the response that is returned on month view ajax requests.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/content.php
    *
    * @package TribeEventsCalendar
    * @since 3.0
    * @author Modern Tribe Inc.
    *
    */

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>

    <div id=”tribe-events-content” class=”tribe-events-month”>

    <!– Month Title –>
    <?php do_action( ‘tribe_events_before_the_title’ ) ?>
    <h2 class=”tribe-events-page-title”><?php tribe_events_title() ?></h2>
    <?php do_action( ‘tribe_events_after_the_title’ ) ?>

    <!– Notices –>
    <?php tribe_events_the_notices() ?>

    <!– Month Header –>
    <?php do_action( ‘tribe_events_before_header’ ) ?>
    <div id=”tribe-events-header” <?php tribe_events_the_header_attributes() ?>>

    <!– Header Navigation –>
    <?php tribe_get_template_part( ‘month/nav’ ); ?>

    </div><!– #tribe-events-header –>
    <?php do_action( ‘tribe_events_after_header’ ) ?>

    <?php
    global $detect;
    if($detect->isMobile()) {
    ?>
    <style>
    #tribe-events-mobile-template{display:block}
    </style>
    <?php
    // if on mobile, grid should not be shown
    // don’t know what to do here, so leave it blank!
    } else { ?>

    <!– Month Grid –>
    <?php tribe_get_template_part( ‘month/loop’, ‘grid’ ) ?>
    <!– Month Footer –>
    <?php do_action( ‘tribe_events_before_footer’ ) ?>
    <div id=”tribe-events-footer”>

    <!– Footer Navigation –>
    <?php do_action( ‘tribe_events_before_footer_nav’ ); ?>
    <?php tribe_get_template_part( ‘month/nav’ ); ?>
    <?php do_action( ‘tribe_events_after_footer_nav’ ); ?>

    </div><!– #tribe-events-footer –>
    <?php do_action( ‘tribe_events_after_footer’ ) ?>

    <?php
    } // end if is not mobile
    ?>

    <div id=”tribe-events-mobile-template”>
    <?php do_action( ‘tribe_events_before_template’ ); ?>
    <?php while (tribe_events_have_month_days()) : tribe_events_the_month_day(); ?>
    <?php tribe_get_template_part( ‘list/single-event_month_mob’ );?>
    <?php endwhile; ?>

    <?php
    echo ‘<div id=”tribe-events-mobile-nav”>’;
    tribe_get_template_part( ‘month/nav’ );
    echo ‘</div>’;
    ?>

    <?php do_action( ‘tribe_events_after_template’ ) ?>
    </div>

    </div><!– #tribe-events-content –>

    #921036
    Brian
    Member

    Hi,

    Moving the template files in the view directly such as this to a home page template will not work.

    To show the calendar on the home page would require a custom loop and then display of that information.

    This is an interesting project, but we are unable to provide much more feedback on a project such as this.

    Thanks

    #936439
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Template Customization Calendar Not Displaying’ is closed to new replies.