Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Define which pages shouldn't have the sidebar
- *
- * See lib/sidebar.php for more details
- */
- function roots_display_sidebar() {
- $sidebar_config = new Roots_Sidebar(
- /**
- * Conditional tag checks (http://codex.wordpress.org/Conditional_Tags)
- * Any of these conditional tags that return true won't show the sidebar
- *
- * To use a function that accepts arguments, use the following format:
- *
- * array('function_name', array('arg1', 'arg2'))
- *
- * The second element must be an array even if there's only 1 argument.
- */
- array(
- 'is_404',
- 'is_front_page',
- array( 'in_array',
- array(
- basename( roots_template_path() ),
- array(
- // your template files here...
- 'archive-seo_partner.php',
- 'single-seo_partner.php',
- 'archive-seo_resource.php',
- 'single-seo_resource.php',
- 'archive-seo_project.php',
- 'single-seo_project.php',
- )
- )
- )
- ),
- /**
- * Page template checks (via is_page_template())
- * Any of these page templates that return true won't show the sidebar
- */
- array(
- 'template-custom.php',
- 'template-events.php'
- )
- );
- return $sidebar_config->display;
- }
Advertisement
Add Comment
Please, Sign In to add comment