{"id":52285,"date":"2013-06-26T10:03:09","date_gmt":"2013-06-26T17:03:09","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/"},"modified":"2015-07-07T06:26:54","modified_gmt":"2015-07-07T13:26:54","slug":"omit-weekend-days-from-event-with-date-range","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/","title":{"rendered":"Omit Weekend Days from event with date range"},"content":{"rendered":"<p>Hello,<\/p>\n<p>First off thanks for making such a useful plug-in. I&#8217;m loving it. Unfortunately I have a small issue. My client has many events that run over the course of a week or even a month. I&#8217;m using date ranges to facilitate this. The client works with financial advisers and naturally the events run only on weekdays (who wants to go to a financial event at the weekend, right?). Here lies my problem&#8230; in Calendar view the events are populating right across the week, inc Saturdays and Sundays. To &#8216;fix&#8217; this I omitted the sat and sun  blocks and thus columns by using pseudo class selectors EG .tribe-events-calendar tr td:nth-child(6) {display: none;} etc. <\/p>\n<p>All was great until I loaded it onto the corporate system (citrix) running IE8 *huge sigh* (this events calendar is for internal use and for employees out in the field &#8211; fortunately for me, they use ipads). For the pseudo classes to work I had to load in good ol&#8217; http:\/\/selectivizr.com\/ but this 1. causes a delay in hiding the blocks &#8211; this is not helped with the virtual machines being as slow and a week in jail&#8230; and 2. the container is leaving a space where they were, almost as if I was using visibility: hidden instead of display: none. <\/p>\n<p>I can see in the output code that the plug-in php is adding class=&#8221;tribe-events-right&#8221; to Friday, Saturday and Sundays blocks. So, I was thinking of adding a further class but I only want to add this to Sat and Sun. Once I add this I can then hide the content within the blocks (I&#8217;m happy enough to leave the days displayed in the table), making it look as if the date range only runs over weekdays. Do you know how I can do this as I&#8217;ve searched the code and just can&#8217;t make out where the tribe-events-right class is being added.<\/p>\n<p>List view doesn&#8217;t have this issue as the_content (within the more info single pages I&#8217;ve setup) specify the events being week day only. On that tip I&#8217;m using metafizzy&#8217;s Isotope plug-in to populate and further filter the list section &#8211; looks really slick \ud83d\ude42<\/p>\n<p>Because I&#8217;m essentially running this on their intranet, sending a link is an issue, however I can post some screenshots if my description isn&#8217;t good enough.<\/p>\n","protected":false},"template":"","class_list":["post-52285","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>Omit Weekend Days from event with date range -<\/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\/omit-weekend-days-from-event-with-date-range\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Omit Weekend Days from event with date range -\" \/>\n<meta property=\"og:description\" content=\"Hello, First off thanks for making such a useful plug-in. I&#8217;m loving it. Unfortunately I have a small issue. My client has many events that run over the course of a week or even a month. I&#8217;m using date ranges to facilitate this. The client works with financial advisers and naturally the events run only [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:26:54+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/\",\"name\":\"Omit Weekend Days from event with date range -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-06-26T17:03:09+00:00\",\"dateModified\":\"2015-07-07T13:26:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/#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\":\"Omit Weekend Days from event with date range\"}]},{\"@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":"Omit Weekend Days from event with date range -","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\/omit-weekend-days-from-event-with-date-range\/","og_locale":"en_US","og_type":"article","og_title":"Omit Weekend Days from event with date range -","og_description":"Hello, First off thanks for making such a useful plug-in. I&#8217;m loving it. Unfortunately I have a small issue. My client has many events that run over the course of a week or even a month. I&#8217;m using date ranges to facilitate this. The client works with financial advisers and naturally the events run only [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/","article_modified_time":"2015-07-07T13:26:54+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/","name":"Omit Weekend Days from event with date range -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-06-26T17:03:09+00:00","dateModified":"2015-07-07T13:26:54+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/omit-weekend-days-from-event-with-date-range\/#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":"Omit Weekend Days from event with date range"}]},{"@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\/52285","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\/52285\/revisions"}],"predecessor-version":[{"id":979261,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/52285\/revisions\/979261"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=52285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}