Title: sidebar access
Last modified: August 18, 2016

---

# sidebar access

 *  [mrlarter](https://wordpress.org/support/users/mrlarter/)
 * (@mrlarter)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/sidebar-access/)
 * I am working on my website and hoping I can in some way control what is visable
   on my sidebar depending on what page or post the viewer is looking at.
 * currently I am using a
 * <?php if (is_page( )) { ?>
 * code but this depends on the title in the page. is there somway I can edit this
   so it maybe depends on the page or post number? so so that something only appears
   on a certain page and not else where? I currently have this working fine but 
   when a viewer goes to my main index.php page the alternative code does not appear.
 * [http://brianlarter.com](http://brianlarter.com)

The topic ‘sidebar access’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mrlarter](https://wordpress.org/support/users/mrlarter/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/sidebar-access/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
