Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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');
- ?>
Add Comment
Please, Sign In to add comment