{"id":1065096,"date":"2016-01-30T18:17:11","date_gmt":"2016-01-31T02:17:11","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/"},"modified":"2016-02-22T08:35:05","modified_gmt":"2016-02-22T16:35:05","slug":"page-template-body-class-not-being-included-in-community-events-pages","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/","title":{"rendered":"Page template body class not being included in Community Events pages"},"content":{"rendered":"<p>Hi &#8211; I&#8217;m using the latest versions of EC Pro and Community Events. I am using a specific page template for the EC pages (that I selected in the settings &#8211; where it says it&#8217;ll be used for Community Events pages too) and while the correct page template is being used, the body class generated by the theme (.page-template-eventscalendar-php) that goes with that template is not being added to any of the Community Events pages (but it is on the other events pages).  Not a huge deal but a bit of a pain because I have to add extra classes everywhere in my stylesheet where the elements for that template are being styled, one for the event submission page and one for the event list page. (.tribe_community_list and .tribe_community_edit). It just seems like that&#8217;s a little bug that should be fixed.<br \/>\nI do see another common body class in all the event pages: .tribe-theme-sv (my main theme is called sv) &#8211; if I use that instead for styling, can you confirm it will be there on ALL event pages?<br \/>\nThanks!<\/p>\n","protected":false},"template":"","class_list":["post-1065096","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>Page template body class not being included in Community Events pages -<\/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\/page-template-body-class-not-being-included-in-community-events-pages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Page template body class not being included in Community Events pages -\" \/>\n<meta property=\"og:description\" content=\"Hi &#8211; I&#8217;m using the latest versions of EC Pro and Community Events. I am using a specific page template for the EC pages (that I selected in the settings &#8211; where it says it&#8217;ll be used for Community Events pages too) and while the correct page template is being used, the body class generated [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-22T16:35:05+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\/page-template-body-class-not-being-included-in-community-events-pages\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/\",\"name\":\"Page template body class not being included in Community Events pages -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-31T02:17:11+00:00\",\"dateModified\":\"2016-02-22T16:35:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/#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\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Page template body class not being included in Community Events pages\"}]},{\"@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":"Page template body class not being included in Community Events pages -","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\/page-template-body-class-not-being-included-in-community-events-pages\/","og_locale":"en_US","og_type":"article","og_title":"Page template body class not being included in Community Events pages -","og_description":"Hi &#8211; I&#8217;m using the latest versions of EC Pro and Community Events. I am using a specific page template for the EC pages (that I selected in the settings &#8211; where it says it&#8217;ll be used for Community Events pages too) and while the correct page template is being used, the body class generated [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/","article_modified_time":"2016-02-22T16:35:05+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\/page-template-body-class-not-being-included-in-community-events-pages\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/","name":"Page template body class not being included in Community Events pages -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-31T02:17:11+00:00","dateModified":"2016-02-22T16:35:05+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-template-body-class-not-being-included-in-community-events-pages\/#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":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Page template body class not being included in Community Events pages"}]},{"@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\/1065096","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\/1065096\/revisions"}],"predecessor-version":[{"id":1065867,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1065096\/revisions\/1065867"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1065096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}