Title: Different Sidebars?
Last modified: August 18, 2016

---

# Different Sidebars?

 *  [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/different-sidebars/)
 * How can you have different sidebar on different pages? Like the content (text)
   and stuff.
 * Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [xerocool](https://wordpress.org/support/users/xerocool/)
 * (@xerocool)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238396)
 * Here: [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags).:).
   Fairly easy.
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238397)
 * Hmm… okay. I’m kinda getting this. Sounds pretty easy.
    But where do I have to
   enter these tags?
 * Do I have to use the code posted in **Variable Sidebar Content**? Replace it 
   with my current code in `sidebar.php`?
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238413)
 * So, am I, right or wrong?
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238414)
 * Well, [I did the same thing](http://www.cameraontheroad.com/?p=623) and I spelled
   out how to do it here. That might help.
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238454)
 * But this works with only categories, right? Not pages?
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238455)
 * `
    <?php $post = $wp_query->post; if ( in_page('9') ) { include(TEMPLATEPATH .'/
   sidebar_portfolio.php'); elseif ( in_page('10') ) { include(TEMPLATEPATH . '/
   sidebar_archives.php'); elseif ( in_page('12') ) { include(TEMPLATEPATH . '/sidebar_about.
   php'); } else { include(TEMPLATEPATH . '/sidebar_normal.php'); } ?>
 * That’s what I am putting. Is it right?
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238456)
 * I think I got it working. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Different Sidebars?’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 7 replies
 * 3 participants
 * Last reply from: [bk](https://wordpress.org/support/users/bk/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/different-sidebars/#post-238456)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
