Title: changing the menu
Last modified: August 18, 2016

---

# changing the menu

 *  [stennie](https://wordpress.org/support/users/stennie/)
 * (@stennie)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/)
 * I am trying to create a site that when you go to a specific page it has a specific
   sidebar completly different to other pages…
 * is this possible with wp?
 * (should i mention now im not a php person … :P)
 * ??????

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

 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/#post-207466)
 * of course you can.
 * on my site for example you wouldn’t recognize the sidebar as “the WP sidebar”.
   😉 You need to adapt the colors in the css for the style and also change the 
   Sidebar template in the Template Editor.
 * If you want the standard sidebar, but one page should have another one, then 
   you will have to write the page your own (or use the “Write Page” module) and
   cut out the
 * `<?php get_sidebar(); ?>`
 * Then create an own sidebar as you wish. You could e.g. copy the sidebar section
   from a ready HTML output and adapt it.
 * Alex
 *  Thread Starter [stennie](https://wordpress.org/support/users/stennie/)
 * (@stennie)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/#post-207468)
 * but that means manually writing a page with html right?
 * no way to do it automated? if i create another menu (copying the sidebar.php 
   file, rename to sidebar2.php and change the content) how do I change the php 
   on a SPECIFIC page to show this different sidebar and not the ones for the rest
   of the pages?
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/#post-207469)
 * How about making a sidebar2.php like you suggested and then in your original 
   sidebar.php put something like this:
    `<?php if ( is_page('page-slug-here') ){
   include_once('path/to/sidebar2.php'); } else { ?> all the other sidebar content
   here <?php } ?>
 * If the sidebars share bits here and there but have some varying content, you 
   can do that on a smaller scale:
    `<?php if ( is_page('page-slug-here') ) { ?>
   specific page content here <?php } else { ?> default content here <?php } ?>
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/#post-207479)
 * So the answer to your question is YES, you have to get into your files and write
   the information in your template files and set up the different sidebar looks
   for each page or category that you want to have the different sidebars.
 * Here is some other information to help you do this – it is only as difficult 
   as you make it. Go slow and take everything step by step.
 * [Customizing Your Sidebar](http://codex.wordpress.org/Customizing_Your_Sidebar)
   
   [Developing Your Post Meta Data Section (sometimes found on the sidebar)](http://codex.wordpress.org/Post_Meta_Data_Section)
   [Stepping Into Template Tags](http://codex.wordpress.org/Stepping_Into_Template_Tags)
   [WordPress Template Files](http://codex.wordpress.org/Templates) [The WordPress Loop in Action](http://codex.wordpress.org/The_Loop_in_Action)
   [Conditional Tags](http://codex.wordpress.org/Conditional_Tags)
 *  Thread Starter [stennie](https://wordpress.org/support/users/stennie/)
 * (@stennie)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/#post-207672)
 * my sidebar menus are static … eg i change the sidebar.php file and type my own
   menus. Would the solution above still be able to do this if they are staic?
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/#post-207708)
 * If you take the `sidebar.php` file and put viable HTML in them, getting rid of
   all the brilliant category, archive, and Pages template tags, you can have it
   be anything you want. It doesn’t matter.
 * If you want to avoid writing the HTML anchor for every category you add to your
   site on the sidebar, then you can use the default or class Theme’s sidebar and
   just copy and paste the tag into your new sidebar. Doesn’t matter. Just put the
   sidebar you want into the Theme you are using.

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

The topic ‘changing the menu’ is closed to new replies.

## Tags

 * [changing](https://wordpress.org/support/topic-tag/changing/)
 * [different](https://wordpress.org/support/topic-tag/different/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Lorelle](https://wordpress.org/support/users/lorelle/)
 * Last activity: [20 years, 12 months ago](https://wordpress.org/support/topic/changing-the-menu/#post-207708)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
