Created
January 9, 2010 00:56
-
-
Save seedprod/272626 to your computer and use it in GitHub Desktop.
Thematic Sidebar Logic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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