Skip to content

Instantly share code, notes, and snippets.

@barbwiredmedia
Created October 29, 2013 16:56
Show Gist options
  • Save barbwiredmedia/7218516 to your computer and use it in GitHub Desktop.
Save barbwiredmedia/7218516 to your computer and use it in GitHub Desktop.
Wordpress Roots Theme config.php Conditional tag checks to keep template/ page from displaying sidebar. This is that array example http://roots.io/
array(
'is_404',
'is_front_page',
array('is_page', array('instructors', '',)), //page-instructors.php
array('is_page', array('contact', '',)),
array('is_singular', array('instructor', '',)), // single-instructor.php
array('is_singular', array('class', '',))
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment