Title: Additional Sidebars Problem
Last modified: June 3, 2018

---

# Additional Sidebars Problem

 *  [funcoder88](https://wordpress.org/support/users/funcoder88/)
 * (@funcoder88)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/additional-sidebars-problem/)
 * I hope someone here can help me. I have been trying to add 4 additional sidebars
   to the Courage theme to fill them with widgets, as this theme by default comes
   with only two sidebars for the magazine homepage and the right sidebar. I found
   a tutorial here and made changes to my child theme folder as follows:
 * functions.php:
 * register_sidebar (array ()
    ‘name’ => ‘Footer Sidebar 1’, ‘id’ => ‘footer-sidebar-
   1’, ‘description’ => ‘Appearance in the footer area’, ‘before_widget’ => ‘<aside
   id = “% 1 $ s” class = “widget% 2 $ s”>’, ‘after_widget’ => ‘</ aside>’, ‘before_title’
   => ‘<h3 class = “widget-title”>’, ‘after_title’ => ‘</ h3>’, )); register_sidebar(
   array () ‘name’ => ‘Footer Sidebar 2’, ‘id’ => ‘footer-sidebar-2’, ‘description’
   => ‘Appearance in the footer area’, ‘before_widget’ => ‘<aside id = “% 1 $ s”
   class = “widget% 2 $ s”>’, ‘after_widget’ => ‘</ aside>’, ‘before_title’ => ‘
   <h3 class = “widget-title”>’, ‘after_title’ => ‘</ h3>’, )); register_sidebar(
   array () ‘name’ => ‘Footer Sidebar 3’, ‘id’ => ‘footer-sidebar-3’, ‘description’
   => ‘Appearance in the footer area’, ‘before_widget’ => ‘<aside id = “% 1 $ s”
   class = “widget% 2 $ s”>’, ‘after_widget’ => ‘</ aside>’, ‘before_title’ => ‘
   <h3 class = “widget-title”>’, ‘after_title’ => ‘</ h3>’, )); register_sidebar(
   array () ‘name’ => ‘Footer Sidebar 4’, ‘id’ => ‘footer-sidebar-4’, ‘description’
   => ‘Appearance in the footer area’, ‘before_widget’ => ‘<aside id = “% 1 $ s”
   class = “widget% 2 $ s”>’, ‘after_widget’ => ‘</ aside>’, ‘before_title’ => ‘
   <h3 class = “widget-title”>’, ‘after_title’ => ‘</ h3>’, ));
 * footer.php:
 * <div id = “footer-sidebar” class = “secondary”>
    <div id = “footer-sidebar1”>
   <? Php if (is_active_sidebar ( ‘footer-sidebar-1’)) { dynamic_sidebar ( ‘footer-
   sidebar-1’); } ?> </ Div> <div id = “footer-sidebar2”> <? Php if (is_active_sidebar(‘
   footer-sidebar-2’)) { dynamic_sidebar ( ‘footer-sidebar-2’); } ?> </ Div> <div
   id = “footer-sidebar3”> <? Php if (is_active_sidebar ( ‘footer-sidebar-3’)) {
   dynamic_sidebar ( ‘footer-sidebar-3’); } ?> </ Div> <div id = “footer-sidebar4”
   > <? Php if (is_active_sidebar ( ‘footer-sidebar-4’)) { dynamic_sidebar ( ‘footer-
   sidebar-4’); } ?> </ Div> </ Div>
 * I have not made any changes to the “style.css” because the default values ​​should
   already be given. Basically it works already and I see the new sidebars under“
   Design> Widgets” and fill them with widgets. I’ve tested each with a calendar
   and a search box widget, but it breaks me the whole footer as everything is stretched
   to 100% of the screen. Maybe someone could help me and look at it.
    -  This topic was modified 7 years, 10 months ago by [funcoder88](https://wordpress.org/support/users/funcoder88/).

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/additional-sidebars-problem/#post-10358264)
 * are you working with a child theme? [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 * what is the _full _code of footer.php after your edits?
 * and start applying some CSS for your new footer divs…
 * you might need to provide a live link to your site to get support with the formatting.
 *  Thread Starter [funcoder88](https://wordpress.org/support/users/funcoder88/)
 * (@funcoder88)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/additional-sidebars-problem/#post-10364955)
 * Yes, I’m working with a child theme. I cannot publish the link of my site yet
   as it’s unfinished and should be only available when it’s complete. Here is the
   full code of my current “footer.php” and the added code to my “style.css” so 
   far:
 * footer.php:
 *  <?php do_action(‘courage_before_footer’); ?>
 *  <div id=”footer-wrap”>
 *  <footer id=”footer” class=”container clearfix” role=”contentinfo”>
 * <div id=”footer-sidebar”>
    <div id=”footer-sidebar1″> <?php if(is_active_sidebar(‘
   footer-sidebar-1’)){ dynamic_sidebar(‘footer-sidebar-1’); } ?> </div> <div id
   =”footer-sidebar2″> <?php if(is_active_sidebar(‘footer-sidebar-2’)){ dynamic_sidebar(‘
   footer-sidebar-2’); } ?> </div> <div id=”footer-sidebar3″> <?php if(is_active_sidebar(‘
   footer-sidebar-3’)){ dynamic_sidebar(‘footer-sidebar-3’); } ?> </div> </div>
 *  <nav id=”footernav” class=”clearfix” role=”navigation”>
    <?php // Get Navigation
   out of Theme Options wp_nav_menu(array(‘theme_location’ => ‘footer’, ‘container’
   => false, ‘menu_id’ => ‘footernav-menu’, ‘echo’ => true, ‘fallback_cb’ => ”, ‘
   before’ => ”, ‘after’ => ”, ‘link_before’ => ”, ‘link_after’ => ”, ‘depth’ =>
   1)); ?> </nav>
 *  <div id=”footer-text”>
    <?php do_action(‘courage_footer_text’); ?> </div>
 *  </footer>
 *  </div>
 * </div><!– end #wrapper –>
 * <?php wp_footer(); ?>
    </body> </html>
 * There is no additional code for my “style.css” as none from them I found did 
   work correctly with this changes but maybe someone could do this.
    -  This reply was modified 7 years, 10 months ago by [funcoder88](https://wordpress.org/support/users/funcoder88/).

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

The topic ‘Additional Sidebars Problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/courage/1.5.7/screenshot.png)
 * Courage
 * [Support Threads](https://wordpress.org/support/theme/courage/)
 * [Active Topics](https://wordpress.org/support/theme/courage/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/courage/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/courage/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [funcoder88](https://wordpress.org/support/users/funcoder88/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/additional-sidebars-problem/#post-10364955)
 * Status: not resolved