Title: Sidebars
Last modified: August 19, 2016

---

# Sidebars

 *  [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/)
 * Hi,
 * I have a website [http://www.kevinwiles.co.uk](http://www.kevinwiles.co.uk)
 * Now SOme of the sidebars are controlled by Widgets but how can I add a completly
   unique sidebar on a page like this?
 * [http://www.kevinwiles.co.uk/services/](http://www.kevinwiles.co.uk/services/)
 * When I change some of the widgets on my blog sidebar it changes the sidebar on
   every single pages.
 * How do I stop this?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sidebars-2/page/2/?output_format=md) [→](https://wordpress.org/support/topic/sidebars-2/page/2/?output_format=md)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456538)
 * Have you read the section in the [Codex: Different Sidebars Anyone](http://codex.wordpress.org/Customizing_Your_Sidebar#Different_Sidebars_Anyone.3F)?
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456786)
 * Hi,
 * So the below in bold would be what i need to change to make new widgets for each
   sidebar?
 * <?php if ( function_exists (‘register_sidebar’)) {
    register_sidebar (‘**custom**‘);}?
   >
 * Also then How do I define what this side bar uses for the page so it only appears
   on one page?
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456788)
 * The register_sidebar(‘**custom**‘) only registers the file you write called sidebar-
   custom.php. See the sidebar.php file in your theme’s folder for an example.
 * I am not exactly sure what you mean by ‘appears on one page’. If you mean a Page(
   not a Post), then to call your sidebar, you modify the template for the page 
   and change the call from get_sidebar() to get_sidebar(‘custom’).
 * If you mean a page of Posts, say the first page, but not the second, third, etc,
   then you need to put in code to test the page number and call the desired sidebar
   based on the page number. Something like this:
 *     ```
       <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       if ($paged == 1) {
          get_sidebar(); // Use the default sidebar for page 1
       } else {
          get_sidebar('custom'); // Use the custom sidebar for other pages
       } ?>
       ```
   
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456789)
 * Hi,
 * I have tried all the guide basically on the below page
 * [http://www.kevinwiles.co.uk/about/top-10-seo-tips/](http://www.kevinwiles.co.uk/about/top-10-seo-tips/)
 * I want a unique sidebar on this page only not on any other page, any ideas?
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456790)
 * Becuase that page is just a normal page isnt it just generated by hte page.php?
   Which means Id need to do something elsE?
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456791)
 * If this is using page.php, modify it like this.
 * In the loop, save the page ID to a variable, $savedID for example. Then, use 
   code like this for the sidebar:
 *     ```
       <?php if ($savedID == 41) {
          get_sidebar('custom'); // Use the custom sidebar for page ID 41
       } else {
          get_sidebar(); // Use the default sidebar for other pages
       } ?>
       ```
   
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456848)
 * Thanks
 * I dont really undertsnad sorry to be a pain,
 * As I go into my Page PHP file the only sidebar info I have is
 * <div class=”sidebar_pad”>
    <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘
   Sidebar’)): endif; ?> </div>
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456849)
 * Since page.php is used for all single pages, you should save the ID of the current
   page while in the loop. Then use code like the following to test the saved ID
   and display the correct sidebar:
 *     ```
       <div class="sidebar_pad">
       <?php
       if ($savedID == 41) {
          if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar-custom')):
          endif;
       } else {
          if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar')):
          endif;
       }?>
       </div>
       ```
   
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456850)
 * Hi,
 * Where do I get the id from?
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456851)
 * Hi,
 * I found the page ID changed this but it still doesnt work!
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456852)
 * This is all the code in my sidebar-top10.php
 * <?php if (!is_home()){?>
    <!– begin sidebar –> <div class=”sidebar_about”> dddddd
   <div class=”sidebar_pad”> ddddd
 * </div>
 * <!– end sidebar –>
    <?php }?>
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456853)
 * I would suggest starting with a copy of the standard sidebar.php in your theme
   and modifying it.
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456864)
 * Hi,
 * My stanadard side bar has nothing in uit!
 *  [Jeremy Pry](https://wordpress.org/support/users/jpry/)
 * (@jpry)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456865)
 * Kevin, just to be clear on what you are looking for, are you trying to have a
   unique widget on one page only, or are you trying to have custom sidebar content
   that **does not** come from a widget?
 *  Thread Starter [kevinwiles](https://wordpress.org/support/users/kevinwiles/)
 * (@kevinwiles)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/#post-1456866)
 * Hi,
 * Really sorry to be a pain is there any chance you could have a look for me?
 * I think the issue is that the page Top 10 SEO tips doesnt know what side bar 
   to call.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sidebars-2/page/2/?output_format=md) [→](https://wordpress.org/support/topic/sidebars-2/page/2/?output_format=md)

The topic ‘Sidebars’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 3 participants
 * Last reply from: [Jeremy Pry](https://wordpress.org/support/users/jpry/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/sidebars-2/page/2/#post-1456867)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
