Title: Changing side bar
Last modified: August 18, 2016

---

# Changing side bar

 *  [radoya](https://wordpress.org/support/users/radoya/)
 * (@radoya)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/changing-side-bar/)
 * How could I change a side bar in my static pages (permalink)?
    I need to have
   different featured in static pages side bar than they are in main blog page.

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/changing-side-bar/#post-163275)
 * Two ways to do this:
 * 1. Use the `is_single()` conditional tag in a PHP if/else statement to test what
   page you’re on and set up your sidebar accordingly:
 * [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 * 2. Create a new template for the individual post version of your sidebar (say“
   sidebar-single.php”), and in single.php, change this:
 * `<?php get_sidebar(); ?>`
 * to:
 * `<?php include(TEMPLATEPATH . '/sidebar-single.php'); ?>`
 * (If your theme doesn’t have a single.php template, make a copy of index.php and
   rename it single.php, then make the change above.)
 *  Thread Starter [radoya](https://wordpress.org/support/users/radoya/)
 * (@radoya)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/changing-side-bar/#post-163300)
 * Thanks for help…
    I was trying to follow 1. option but I found that always I 
   get some part of code as visible in my side bar 🙁 I had trying 2. option more
   than first and there I met another problem. However I have no single.php file
   in my template an I made one with simple rename of index.php. The problem is 
   that my index.php don’t comprehend line <?php get_sidebar(); ?> in themself. 
   I had chacking around and find that that footer.php have that line and than I
   did following: 1. I had duplicate and rename footer.php to footer1.php and change
   that part of code and replace and rename index.php to single.php and change part
   of code with footer.php to footer1.php, but in single post page I didn’t seen
   side bar and one part of background and fatal error… 🙂 2. I made single.php 
   and change <?php get_sidebar(); ?> to <?php include(TEMPLATEPATH . ‘/sidebar-
   single.php’); ?> in footer.php, but I got changed side bar in the index page 
   as soon as in the static. Any other suggestions or advise?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/changing-side-bar/#post-163316)
 * Well, I guess the correct way to go would be:
    – leave the index.php with the
   original footer and sidebar – in the single.php call for the footer1.php which
   in turn calls for the (modified) sidebar-single.php

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

The topic ‘Changing side bar’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/changing-side-bar/#post-163316)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
