Skip to content

Instantly share code, notes, and snippets.

@seedprod
Created January 9, 2010 00:56
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 seedprod/272626 to your computer and use it in GitHub Desktop.
Save seedprod/272626 to your computer and use it in GitHub Desktop.
Thematic Sidebar Logic
<?php
// Sidebar Logic
function childtheme_sidebar_logic() {
function childtheme_sidebar_logic_filter($sidebars_widgets){
if(is_home() || is_single()) {
unset($sidebars_widgets['primary-aside']);
} else {
unset($sidebars_widgets['secondary-aside']);
}
return $sidebars_widgets;
}
add_filter('sidebars_widgets','childtheme_sidebar_logic_filter' );
}
add_action('thematic_abovemainasides','childtheme_sidebar_logic');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment