{"id":1416856,"date":"2018-01-03T04:45:28","date_gmt":"2018-01-03T12:45:28","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/"},"modified":"2018-01-03T11:10:22","modified_gmt":"2018-01-03T19:10:22","slug":"altering-layouts","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/","title":{"rendered":"Altering Layouts"},"content":{"rendered":"<p>Hey guys,<\/p>\n<p>I&#8217;ve installed The Events Calendar Plugin on my website but it doesn&#8217;t seem to be working very well with my theme. For example, the content layout does not appear as full width. I&#8217;ve emailed the theme&#8217;s support and this is what they said:<\/p>\n<p>&#8220;It is because the page is not full width, as the event calendar is archive page, you need to do it via your child theme: http:\/\/docs.oceanwp.org\/article\/203-altering-layouts<br \/>\nShow this code to the event calendar support team, and ask them by what code you need to replace &#8220;is_singular( &#8216;post&#8217; )&#8221; to put all your event calendar page full width.&#8221;<\/p>\n<p>This is the code:<\/p>\n<p>\/**<br \/>\n * Alter your post layouts<br \/>\n *<br \/>\n * Replace is_singular( &#8216;post&#8217; ) by the function where you want to alter the layout<br \/>\n * @return full-width, full-screen, left-sidebar or right-sidebar<br \/>\n *<br \/>\n *\/<br \/>\nfunction my_post_layout_class( $class ) {<\/p>\n<pre><code>\/\/ Alter your layout\nif ( is_singular( 'post' ) ) {\n    $class = 'full-width';\n}\n\n\/\/ Return correct class\nreturn $class;\n<\/code><\/pre>\n<p>}<br \/>\nadd_filter( &#8216;ocean_post_layout_class&#8217;, &#8216;my_post_layout_class&#8217;, 20 );<\/p>\n<p>I&#8217;ve attached a screenshot of the problem. The same problem occurs with the rest of plugins by modern tribe such as community events submission page. I&#8217;m not very familiar with coding so how do I solve the problem?<\/p>\n","protected":false},"template":"","class_list":["post-1416856","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>Altering Layouts -<\/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\/altering-layouts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Altering Layouts -\" \/>\n<meta property=\"og:description\" content=\"Hey guys, I&#8217;ve installed The Events Calendar Plugin on my website but it doesn&#8217;t seem to be working very well with my theme. For example, the content layout does not appear as full width. I&#8217;ve emailed the theme&#8217;s support and this is what they said: &#8220;It is because the page is not full width, as [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-03T19:10:22+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\/altering-layouts\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/\",\"name\":\"Altering Layouts -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-01-03T12:45:28+00:00\",\"dateModified\":\"2018-01-03T19:10:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/#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\":\"Altering Layouts\"}]},{\"@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":"Altering Layouts -","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\/altering-layouts\/","og_locale":"en_US","og_type":"article","og_title":"Altering Layouts -","og_description":"Hey guys, I&#8217;ve installed The Events Calendar Plugin on my website but it doesn&#8217;t seem to be working very well with my theme. For example, the content layout does not appear as full width. I&#8217;ve emailed the theme&#8217;s support and this is what they said: &#8220;It is because the page is not full width, as [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/","article_modified_time":"2018-01-03T19:10:22+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\/altering-layouts\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/","name":"Altering Layouts -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-01-03T12:45:28+00:00","dateModified":"2018-01-03T19:10:22+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/altering-layouts\/#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":"Altering Layouts"}]},{"@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\/1416856","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\/1416856\/revisions"}],"predecessor-version":[{"id":1417216,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1416856\/revisions\/1417216"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1416856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}