Title: Sidebars won&#039;t show
Last modified: August 30, 2016

---

# Sidebars won't show

 *  Resolved [ghulst](https://wordpress.org/support/users/ghulst/)
 * (@ghulst)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sidebars-wont-show/)
 * I like the PR News theme. So I have installed it on my [Tour de France Now](http://tourdefrancenow.com)
   site.
 * The only thing for me, was that it was missing a widget area. So, I added another
   widget area that I called topbar.
 * I created a child theme and added this line to the functions.php:
    `register_sidebar(
   array('name' => 'topbar', 'id' => 'topbar', 'before_widget' => '<div id="%1$s"
   class="widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class
   ="widget-title">', 'after_title' => '</h4>'));`
 * And then added the code for the topbar in the header.php:
 *     ```
       <?php if ( is_active_sidebar( 'topbar' ) ) : ?>
       	<div id="topbar" class="topbar widget-area" role="complementary">
       		<?php dynamic_sidebar( 'topbar' ); ?>
       	</div><!-- #primary-topbar -->
       ```
   
 * The widget area shows the topbar and it does show both sidebars. However, the
   site only shows the topbar, not the sidebars.
 * So, I decided to re-register the sidebars in the child themes’ function.php:
 *     ```
       register_sidebar(array('name' => 'sidebar-left', 'id' => 'sidebar-left', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
       register_sidebar(array('name' => 'sidebar-right', 'id' => 'sidebar-right', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
       register_sidebar(array('name' => 'topbar', 'id' => 'topbar', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
       ```
   
 * However, this has not solved it. It still shows all three areas in the widget
   area, but when I put anything in the right sidebar area (and yes, the theme is
   set on homepage with right sidebar. 😉 )

Viewing 1 replies (of 1 total)

 *  Theme Author [PResponsive](https://wordpress.org/support/users/allis741/)
 * (@allis741)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/sidebars-wont-show/#post-6301889)
 * Create sidebar-topbar.php file

Viewing 1 replies (of 1 total)

The topic ‘Sidebars won't show’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/pr-news/2.9/screenshot.png)
 * PR News
 * [Support Threads](https://wordpress.org/support/theme/pr-news/)
 * [Active Topics](https://wordpress.org/support/theme/pr-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/pr-news/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/pr-news/reviews/)

## Tags

 * [not showing](https://wordpress.org/support/topic-tag/not-showing/)
 * [register](https://wordpress.org/support/topic-tag/register/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 1 reply
 * 2 participants
 * Last reply from: [PResponsive](https://wordpress.org/support/users/allis741/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/sidebars-wont-show/#post-6301889)
 * Status: resolved