• 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.