{"id":1615584,"date":"2018-09-06T12:29:40","date_gmt":"2018-09-06T19:29:40","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/"},"modified":"2018-09-06T12:29:40","modified_gmt":"2018-09-06T19:29:40","slug":"template-file-for-single-event","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/","title":{"rendered":"Template File for Single Event"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am just stumped on why the template file being used for a single event is index.php and not single.php.  The easy answer is that I&#8217;m not following the WordPress Template Hierarchy.  But, when I read through how it works, it seems like the correct file would be single-event.php.<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"xoVG05WXl1\"><p><a href=\"https:\/\/developer.wordpress.org\/themes\/basics\/template-hierarchy\/\">Template Hierarchy<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Template Hierarchy&#8221; &#8212; WordPress Developer Resources\" src=\"https:\/\/developer.wordpress.org\/themes\/basics\/template-hierarchy\/embed\/#?secret=7P2f5ethri#?secret=xoVG05WXl1\" data-secret=\"xoVG05WXl1\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>But, I know that the post type is actually &#8220;tribe_events&#8221; so it could also be single-tribe_events.php (or, just for grins, single-tribe_event.php).<\/p>\n<p>Now, I want to be totally clear here, I want to override the template of the page itself, not the content of the page.  Specifically, I want to change the sidebar.  The file at \/the-events-calendar\/views\/single-event.php has no sidebar.  So that can&#8217;t help me accomplish this.<\/p>\n<p>Also, I know that the file in use is index.php because I installed the plugin called &#8220;Show Current Template&#8221;.  You can see the list of files in use in the attached screen shot.  I&#8217;ve reverted to Twenty Seventeen to eliminate any theme issues.<\/p>\n<p>Anyway, I feel like I&#8217;m missing something obvious but I&#8217;ve been at this all morning.  If you can just point me in the right direction I&#8217;m sure I can handle the rest.  Thanks in advance for your help.  I hope this post isn&#8217;t as stupid as I feel writing it.<\/p>\n<p>Graham<\/p>\n","protected":false},"template":"","class_list":["post-1615584","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>Template File for Single Event -<\/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\/template-file-for-single-event\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Template File for Single Event -\" \/>\n<meta property=\"og:description\" content=\"Hello, I am just stumped on why the template file being used for a single event is index.php and not single.php. The easy answer is that I&#8217;m not following the WordPress Template Hierarchy. But, when I read through how it works, it seems like the correct file would be single-event.php. Template Hierarchy But, I know [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/\" \/>\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\/template-file-for-single-event\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/\",\"name\":\"Template File for Single Event -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-09-06T19:29:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/#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\":\"Template File for Single Event\"}]},{\"@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":"Template File for Single Event -","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\/template-file-for-single-event\/","og_locale":"en_US","og_type":"article","og_title":"Template File for Single Event -","og_description":"Hello, I am just stumped on why the template file being used for a single event is index.php and not single.php. The easy answer is that I&#8217;m not following the WordPress Template Hierarchy. But, when I read through how it works, it seems like the correct file would be single-event.php. Template Hierarchy But, I know [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/","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\/template-file-for-single-event\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/","name":"Template File for Single Event -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-09-06T19:29:40+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/template-file-for-single-event\/#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":"Template File for Single Event"}]},{"@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\/1615584","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1615584\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1615584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}