Title: default-template.php
Last modified: September 1, 2016

---

# default-template.php

 *  Resolved [RobMackay](https://wordpress.org/support/users/robmackay/)
 * (@robmackay)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/default-templatephp/)
 * could you guys add a check for the get_header() / get_footer() just because using
   a wrapper like Roots sage builds the theme a little different and the headers
   are already called in this instance.
 * Adding:
 * if(!$wp_did_header)
 * above get_header() and get_footer(). Resolves headers being sent twice, etc etc
   or something like that 🙂
 * That would be awesome 🙂
 * Thanks!
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 1 replies (of 1 total)

 *  [Brook](https://wordpress.org/support/users/brook-tribe/)
 * (@brook-tribe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/default-templatephp/#post-7674925)
 * Howdy Rob,
 * Thanks for taking the time to reach out with your suggestion!
 * We typically keep logic in those templates to a minimum that way they are easier
   to work with and customize for laymen. In the interest of being up front and 
   transparent, I don’t think this is something we would be keen to add to our plugin
   for all users/themes.
 * I’m sure you know this already, but you can override that file with your own 
   copy inside of your theme folder. If you place the check inside of your overriden
   copy, the issue should go away. Have a look at the [Themer’s Guide](http://m.tri.be/r5)
   for more info. At least for now this would be how to make things compatible with
   Roots Sage.
 * Does that all make sense?
 * Cheers!
    – Brook

Viewing 1 replies (of 1 total)

The topic ‘default-template.php’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [Sage](https://wordpress.org/support/topic-tag/sage/)

 * 1 reply
 * 2 participants
 * Last reply from: [Brook](https://wordpress.org/support/users/brook-tribe/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/default-templatephp/#post-7674925)
 * Status: resolved