Delete One Sidebar in diffrent category – Function.php ?
-
Hi
I fight with this couple of days.My site use theme Fervens c and there is no code in single page to determine number of sidebars.
Only one place when I can change it is Function.php:<?php if ( function_exists('register_sidebar') ) register_sidebars(2, array( 'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="widget-all">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', ));
I want delete one of sidebars in my category ID: 4106
Now i use code:<?php $post = $wp_query->post; if ( in_category('4106') ) { include(TEMPLATEPATH . '/single2.php'); } else { include(TEMPLATEPATH . '/single1.php'); } ?>
So it check category and I use diffrent template for category ID: 4106 buy still I cant delete one of sidebars
help guys
thx
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Delete One Sidebar in diffrent category – Function.php ?’ is closed to new replies.