Skip to content

Instantly share code, notes, and snippets.

@GeoffEW
Created July 22, 2017 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeoffEW/badc00e12c439fb2bd8c050b98b481a2 to your computer and use it in GitHub Desktop.
Save GeoffEW/badc00e12c439fb2bd8c050b98b481a2 to your computer and use it in GitHub Desktop.
Uses CSS to hide certain hours in the week view
/* start at 8:00 AM */
.tribe-week-grid-inner-wrap > .tribe-week-grid-block:nth-child(-n+8),
.tribe-week-grid-hours > div:nth-child(-n+8) {
display: none;
}
/* end at 10:00 PM */
.tribe-week-grid-inner-wrap > .tribe-week-grid-block:nth-child(11),
.tribe-week-grid-hours > div:nth-child(11) {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment