Title: Issue making 2nd sidebar dynamic
Last modified: August 19, 2016

---

# Issue making 2nd sidebar dynamic

 *  Resolved [soulofadoption](https://wordpress.org/support/users/soulofadoption/)
 * (@soulofadoption)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/issue-making-2nd-sidebar-dynamic/)
 * I’m using [this theme](http://www.qualitywordpress.com/?p=144). I’ve already 
   managed to decode the footer, etc. and make some major changes to the template(
   I like the layout, not the graphics, etc.) and customize most of it the way I
   want it.
 * The issue is that I cannot seem to make my second sidebar (right side) dynamic.
   Part of the problem, I think, is that one of my sidebars is called from within
   the footer.
 * I’m not sure which files you might need to see, so I’ll post functions, sidebar
   and footer – I can add any others as requested.
 * My brain knows there’s a simple solution – and supposedly, this is a fully widget/
   dynamic enabled theme, but darn if I can figure out how to turn the non-dynamic,
   dynamic on this one.
 * Any help would be appreciated.
 * Function:
 *     ```
       <?php
       if ( function_exists('register_sidebar') )
           register_sidebar(array(
           	'name' => 'Sidebar Left',
               'before_widget' => '',
               'after_widget' => '',
               'before_title' => '<h3>',
               'after_title' => '</h3>',
           ));
           register_sidebar(array(
           	'name' => 'Sidebar Right',
               'before_widget' => '',
               'after_widget' => '',
               'before_title' => '<h3>',
               'after_title' => '</h3>',
           ));
       ?>
       ```
   
 * Sidebar:
 *     ```
       <!-- Sidebar -->
       		<div class="sidebar">
   
       			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
   
       			<?php endif; ?>
   
       		</div>
       		<!-- Sidebar -->
       ```
   
 * Footer:
 *     ```
       <!-- Sidebar -->
   
       		<div class="clear"></div>
   
       	</div></div></div>
       	<!-- /Main -->
   
       	<!-- Footer -->
       	<div id="footer">
   
       		<!-- Copyright -->
       		<div id="copyright">
       			<br />(c)Copyrighted LSS, All Rights Reserved.<br />
   
         </div>
   
       		<!-- /Copyright -->
   
       	</div>
   
       	<!-- Footer -->
   
       </div>
       <!-- /Page -->
   
       </body>
   
       </html>
       ```
   

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/issue-making-2nd-sidebar-dynamic/#post-1180339)
 * Try
 * Sidebar:
 *     ```
       <!-- Sidebar -->
       <div class="sidebar">
       <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Left') ) : ?>
       <?php endif; ?>
       </div>
       <!-- Sidebar -->
       ```
   
 * Footer:
 *     ```
       <!-- Sidebar -->
       <div class="sidebar2">
       <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Right') ) : ?>
       <?php endif; ?>
       </div>
       <div class="clear"></div>
       ```
   
 *  Thread Starter [soulofadoption](https://wordpress.org/support/users/soulofadoption/)
 * (@soulofadoption)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/issue-making-2nd-sidebar-dynamic/#post-1180509)
 * Hey esmi…
 * Thank you for the help! That’s definitely made the sidebar dynamic, it’s grabbing
   the widgets I’ve assigned to it. Hooray! And reading the calls, I feel like a
   right idiot now, because that should have been obvious to me. LOL
 * Off to fix the CSS so it all looks pretty. 🙂
 * You’re awesome, thank you again!
 *  Thread Starter [soulofadoption](https://wordpress.org/support/users/soulofadoption/)
 * (@soulofadoption)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/issue-making-2nd-sidebar-dynamic/#post-1180517)
 * Figured I should add, for any newbies who seeks out this topic in the future –
   in your CSS, you’ll need to add a second version of the information defining 
   the styles (fonts, padding, etc.) for the sidebar. Quick, easy and dirty – just
   copy everything relating to the sidebar, paste it back in and rename each instance
   of “sidebar” to “sidebar2” (minus the “” symbols, of course).
 * So you’ll have a section of definitions for “sidebar” AND a section of definitions
   for “sidebar2” (minus the “” symbols, of course).

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

The topic ‘Issue making 2nd sidebar dynamic’ is closed to new replies.

## Tags

 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [three column](https://wordpress.org/support/topic-tag/three-column/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 3 replies
 * 2 participants
 * Last reply from: [soulofadoption](https://wordpress.org/support/users/soulofadoption/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/issue-making-2nd-sidebar-dynamic/#post-1180517)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
