Skip Navigation

[Resolved] Events Calendar Issue – No Header or Footer

This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 9 replies, has 2 voices.

Last updated by Shane 7 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#519902
2017-05-03_10-27-53.png
2017-05-03_10-10-43.png
2017-05-03_10-09-21.png

I am trying to use the Events Calendar Pro plugin with a site that is using Layouts. The site is also using the Genesis Theme - and the Genesis Theme integration plugin is active.

I've followed the instructions of a few of the postings in the support thread, including assigning the "Events template" in the Display section of the Events Calendar plugin settings page (see screenshot). I've also created a layout for the Events post-type and archive, and assigned it the properly parent layout (so it should inherit the properly header and footer).

However, the events page, and the individual events are displayed without the header and footer (see screenshot).

I've attempted to follow the instructions here:

https://toolset.com/forums/topic/integrating-modern-tribe-the-events-calendar-with-layouts/

Which says to add the following:

if ( ! defined( 'ABSPATH' ) ) {
    die( '-1' );
}
 
if ( defined( 'WPDDL_VERSION' ) && is_ddlayout_assigned() ) :
    get_header( 'layouts', 'events-default');
        the_ddlayout( 'events-default' );
    get_footer( 'layouts' );
else:
 
get_header();
?>
<div id="tribe-events-pg-template">
    <?php tribe_events_before_html(); ?>
    <?php tribe_get_view(); ?>
    <?php tribe_events_after_html(); ?>
</div> <!-- #tribe-events-pg-template -->
<?php
get_footer();
 
endif; ?>

to the default-template.php (which has been placed in it's own folder in the themes folder (according to the instructions set out by the Event Calendar's plugin's theming section).

However, when I do that, it displays that header/footer, but no calendar content (see screen shot).

What am I doing wrong here?

Thanks

#519973

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Cameron,

Thank you for contacting our support forum.

I see from the Layout you are using with events calendar that the cells are empty.

Could you try adding an element to the cells and let me know if the items start showing.

Thanks,
Shane

#519990

When using the following code in the default-template.php

<?php
/**
 * Default Events Template
 * This file is the basic wrapper template for all the views if 'Default Events Template'
 * is selected in Events -> Settings -> Template -> Events Template.
 *
 * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
 *
 * @package TribeEventsCalendar
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

get_header();
?>
<div id="tribe-events-pg-template">
	<?php tribe_events_before_html(); ?>
	<?php tribe_get_view(); ?>
	<?php tribe_events_after_html(); ?>
</div> <!-- #tribe-events-pg-template -->
<?php
get_footer();

I get the the calendar output, without the layouts header or footer.

When using this code in the default-template.php:

if ( ! defined( 'ABSPATH' ) ) {
    die( '-1' );
}
  
if ( defined( 'WPDDL_VERSION' ) && is_ddlayout_assigned() ) :
    get_header( 'layouts', 'events-default');
        the_ddlayout( 'events-default' );
    get_footer( 'layouts' );
else:
  
get_header();
?>
<div id="tribe-events-pg-template">
    <?php tribe_events_before_html(); ?>
    <?php tribe_get_view(); ?>
    <?php tribe_events_after_html(); ?>
</div> <!-- #tribe-events-pg-template -->
<?php
get_footer();
  
endif; ?>

I get the header and footer from layouts, but no calendar output - along with the "text" caption element I placed via the visual editor.

#519992

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Cameron,

Would you mind if I took a look at this through your website backend ?

The private fields will be enabled for your next response so that you can provide me with the credentials.

Thanks,
Shane

#519993

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Private Fields

#520269

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Cameron,

Could you add the second code back to the site?

I suggest that this is so because Events Calendar may have its own shortcodes to displaying items.

Also it may come with its template file to display the items.

Thanks,
Shane

#520313

second code added.

#520365

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Cameron,

Thank you.

I did another test and found that it works fine
hidden link

I've created a test Layout so that you can see. Once you have started to add cells to your layout then the items should start showing.

Thanks,
Shane

#520401

I don't want to add "cells", I want the output of the Events Calendar plugin to display in the layout I created...

#520421

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Cameron,

I'm not sure how the events calendar adds it items to a page but when you are using Layouts it overrides the display.

This means that you will need to add back the elements to the page in the form of Cells with out Layouts plugin. Simply creating an empty Layout for Events won't make it display as it would normally do.

It seems that some integration needs to be done for this to work.

Take a look at the link below.
https://toolset.com/forums/topic/setting-layout-for-events-post-type-the-events-calendar-plugin-by-modern-tribe/#post-365535

This should allow you to get it working normally.

Thanks,
Shane

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.