Title: making theme sidebar
Last modified: August 20, 2016

---

# making theme sidebar

 *  [Hussein39](https://wordpress.org/support/users/hussein39/)
 * (@hussein39)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/making-theme-sidebar/)
 * hi there
    this is not simple sidebar, it’s little bit complex. i’ve pasted following
   code into my functions.php file:
 *     ```
       <?php
           if ( function_exists('register_sidebar') )
               register_sidebar(array(  
   
               'name' => 'sidebar', 
   
               'before_widget' => '<div class="templatemo_section">',
               'after_widget' => '</div>',  
   
               'before_title' => '<span class="templatemo_section_top_right">',
               'after_title' => '</span><div class="templatemo_section_bottom"></div>',
           ));
           ?>
       ```
   
 * and this is my sidebar.php:
 *     ```
       <div id="templatemo_right_section">
   
                   	<div class="templatemo_section">
   
                       	<div class="templatemo_section_top">
                           	<div class="templatemo_section_top_left">
   
                               </div>
                               <div class="templatemo_section_top_right">
                               </div>
                           </div>
                           <div class="templatemo_section_middle">
                           	<p>
   
       						</p>
                         </div>
                           <div class="templatemo_section_bottom">
                           </div>
   
                       </div><!--  End of section  box-->
                   	 <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("sidebar") ) : ?>
       						 <?php endif; ?>
   
                   </div><!--  End of right Section -->
             		<div class="clear"> </div>
               </div><!--  End of Content Area -->
       ```
   
 * the question that i have is should i use the following code like what i used 
   in my sidebar.php:
 *     ```
       <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("sidebar") ) : ?>
       ```
   

The topic ‘making theme sidebar’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Hussein39](https://wordpress.org/support/users/hussein39/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/making-theme-sidebar/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
