This was kind of a cool thing I was doing to have two different sidebar layouts on pages vs. posts/cpts, but the client decided to go with one layout overall, so now I’m saving it here.
/*** Bootstrappin **/ add_filter( 'genesis_attr_site-inner', 'msdlab_bootstrap_site_inner', 10); add_filter( 'genesis_attr_breadcrumb', 'msdlab_bootstrap_breadcrumb', 10); add_filter( 'genesis_attr_content-sidebar-wrap', 'msdlab_bootstrap_content_sidebar_wrap', 10); add_filter( 'genesis_attr_content', 'msdlab_bootstrap_content', 10); add_filter( 'genesis_attr_sidebar-primary', 'msdlab_bootstrap_sidebar', 10); /*** Bootstrappin **/ function msdlab_bootstrap_site_inner( $attributes ){ $attributes['class'] .= ' container'; return $attributes; } function msdlab_bootstrap_breadcrumb( $attributes ){ $attributes['class'] .= ' row'; return $attributes; } function msdlab_bootstrap_content_sidebar_wrap( $attributes ){ $attributes['class'] .= ' row'; return $attributes; } function msdlab_bootstrap_content( $attributes ){ $layout = genesis_site_layout(); switch($layout){ case 'content-sidebar': case 'sidebar-content': if(is_page()){ $attributes['class'] .= ' col-md-7 col-sm-12'; } else { $attributes['class'] .= ' col-md-9 col-sm-12'; } break; case 'content-sidebar-sidebar': case 'sidebar-sidebar-content': case 'sidebar-content-sidebar': break; case 'full-width-content': $attributes['class'] .= ' col-md-12'; break; } return $attributes; } function msdlab_bootstrap_sidebar( $attributes ){ $layout = genesis_site_layout(); switch($layout){ case 'content-sidebar': case 'sidebar-content': if(is_page()){ $attributes['class'] .= ' col-md-4 col-md-offset-1 hidden-sm hidden-xs'; } else { $attributes['class'] .= ' col-md-3 hidden-sm hidden-xs'; } break; case 'content-sidebar-sidebar': case 'sidebar-sidebar-content': case 'sidebar-content-sidebar': break; case 'full-width-content': $attributes['class'] .= ' hidden'; break; } return $attributes; }