{"id":1003017,"date":"2015-09-08T11:35:22","date_gmt":"2015-09-08T18:35:22","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/"},"modified":"2015-09-10T08:55:59","modified_gmt":"2015-09-10T15:55:59","slug":"displaying-more-hours-in-the-week-view-grid","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/","title":{"rendered":"Displaying more hours in the Week View grid"},"content":{"rendered":"<p>Hello. We have modified our calendar to include some new events in evening hours.<\/p>\n<p>These events do not display in the Week View grid without scrolling, and the availability of scrolling is non-obvious. This means these events are invisible to most users. <\/p>\n<p>We want to extend the range of hours displayed in the Week View grid. Based on this post:<br \/>\n<a href=\"https:\/\/theeventscalendar.com\/week-view-refactor\/\">https:\/\/theeventscalendar.com\/week-view-refactor\/<\/a><\/p>\n<p>we&#8217;ve modifed our child theme with the PHP below in an effort to show the hours from 9am to 9pm without scrolling. It is not working. <\/p>\n<pre><code>&lt;?php\nadd_filter( &#039;tribe_events_week_get_hours&#039;, &#039;filter_week_hours&#039; );\nfunction filter_week_hours( $hours ) {\n  $hour = 0;\n  \n  foreach ( $hours as $key =&gt; $formatted_hour ) {\n    if ( $hour &lt; 9 || $hour &gt; 21 ) {\n      unset( $hours[ $hour ] );\n    }\n    \n    $hour ++;\n  }\n  \n  return $hours;\n}<\/code><\/pre>\n<p>1. Can you advise what we need to do?<\/p>\n<p>2. Can you suggest a wording for a feature request for this function: Control the range of hours displayed in the Week View grid, without the need for code. <\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1003017","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>Displaying more hours in the Week View grid -<\/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\/displaying-more-hours-in-the-week-view-grid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Displaying more hours in the Week View grid -\" \/>\n<meta property=\"og:description\" content=\"Hello. We have modified our calendar to include some new events in evening hours. These events do not display in the Week View grid without scrolling, and the availability of scrolling is non-obvious. This means these events are invisible to most users. We want to extend the range of hours displayed in the Week View [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-10T15:55:59+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\/displaying-more-hours-in-the-week-view-grid\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/\",\"name\":\"Displaying more hours in the Week View grid -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-08T18:35:22+00:00\",\"dateModified\":\"2015-09-10T15:55:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/#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\":\"Displaying more hours in the Week View grid\"}]},{\"@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":"Displaying more hours in the Week View grid -","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\/displaying-more-hours-in-the-week-view-grid\/","og_locale":"en_US","og_type":"article","og_title":"Displaying more hours in the Week View grid -","og_description":"Hello. We have modified our calendar to include some new events in evening hours. These events do not display in the Week View grid without scrolling, and the availability of scrolling is non-obvious. This means these events are invisible to most users. We want to extend the range of hours displayed in the Week View [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/","article_modified_time":"2015-09-10T15:55:59+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\/displaying-more-hours-in-the-week-view-grid\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/","name":"Displaying more hours in the Week View grid -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-08T18:35:22+00:00","dateModified":"2015-09-10T15:55:59+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-more-hours-in-the-week-view-grid\/#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":"Displaying more hours in the Week View grid"}]},{"@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\/1003017","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":3,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1003017\/revisions"}],"predecessor-version":[{"id":1003749,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1003017\/revisions\/1003749"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1003017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}