Return to Snippet

Revision: 49356
at July 20, 2011 19:58 by smashprogrammer


Initial Code
/* register sidebars */
if ( function_exists('register_sidebar') ){
	register_sidebar(array('name' => 'Sidebar',  
            'before_widget' => '<li class=wpSidebar >',  
            'after_widget' => '</li>',  
            'before_title' => '<h3>',  
            'after_title' => '</h3>',  
        ));
	register_sidebar(array('name' => 'Footer',  
            'before_widget' => '<li class=wpFooterSidebar >',  
            'after_widget' => '</li>',  
            'before_title' => '<h3>',  
            'after_title' => '</h3>',  
        ));  

}

Initial URL

                                

Initial Description

                                

Initial Title
wordpress - register a sidebar in function.php

Initial Tags

                                

Initial Language
PHP