{"id":1049503,"date":"2016-01-03T20:45:03","date_gmt":"2016-01-04T04:45:03","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/"},"modified":"2016-02-18T08:33:28","modified_gmt":"2016-02-18T16:33:28","slug":"how-do-i-include-calendar-templates-in-my-header-php","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/","title":{"rendered":"How do I include Calendar templates in my header.php?"},"content":{"rendered":"<p>I am switching to a new theme (Aaron). It only puts the header information on the home page. I want to have it on all my pages so I changed  if ( is_home() || is_front_page() ) to add singular pages. Now I&#8217;d like to add the Events Calendar templates. I tried the following but it didn&#8217;t work. How do I include them?<\/p>\n<pre><code> if ( is_home() || is_front_page() || is_singular() || is_page_template(&#039;single-day.php&#039;) || is_page_template(&#039;day.php&#039;) || is_page_template(&#039;week.php&#039;) || is_page_template(&#039;photo.php&#039;) || is_page_template(&#039;list.php&#039;) || is_page_template(&#039;map.php&#039;) ) \n\nWithout the header, the Events Calendar pages start too high on the page and the fixed menu hides the top of the page.\n\nScreen capture of calendar month page \nhttps:\/\/www.flickr.com\/photos\/45306615@N04\/23866894230\/in\/album-72157663010188041\/\n\nScreen capture of home page showing header with calendar on the home page\nhttps:\/\/www.flickr.com\/photos\/45306615@N04\/23866895310\/in\/album-72157663010188041\/\n\nScreen capture of singular site page with header\nhttps:\/\/www.flickr.com\/photos\/45306615@N04\/24054911752\/in\/dateposted-public\/\n<\/code><\/pre>\n<p>Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-1049503","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How do I include Calendar templates in my header.php? -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I include Calendar templates in my header.php? -\" \/>\n<meta property=\"og:description\" content=\"I am switching to a new theme (Aaron). It only puts the header information on the home page. I want to have it on all my pages so I changed if ( is_home() || is_front_page() ) to add singular pages. Now I&#8217;d like to add the Events Calendar templates. I tried the following but it [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:33:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/\",\"name\":\"How do I include Calendar templates in my header.php? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-04T04:45:03+00:00\",\"dateModified\":\"2016-02-18T16:33:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How do I include Calendar templates in my header.php?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I include Calendar templates in my header.php? -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/","og_locale":"en_US","og_type":"article","og_title":"How do I include Calendar templates in my header.php? -","og_description":"I am switching to a new theme (Aaron). It only puts the header information on the home page. I want to have it on all my pages so I changed if ( is_home() || is_front_page() ) to add singular pages. Now I&#8217;d like to add the Events Calendar templates. I tried the following but it [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/","article_modified_time":"2016-02-18T16:33:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/","name":"How do I include Calendar templates in my header.php? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-04T04:45:03+00:00","dateModified":"2016-02-18T16:33:28+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-include-calendar-templates-in-my-header-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"How do I include Calendar templates in my header.php?"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1049503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1049503\/revisions"}],"predecessor-version":[{"id":1049771,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1049503\/revisions\/1049771"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1049503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}