• my buddy asked me to add a custom drop down menu to a woo theme he was using. I wanted to use a jQuery mega menu in the header but I don’t understand how to register multiple sidebars, especially in the moo themes sidebar-init.php:

    <?php
    // Register widgetized areas
    function the_widgets_init() {
        if ( !function_exists('register_sidebars') )
            return;
     register_sidebar(array('name' => 'Sidebar','id' => 'sidebar-1','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '<span class="fold">&nbsp;</span></h3>'));
     }
    add_action( 'init', 'the_widgets_init' );
    ?>

    I know I have to use register_sidebars(n) but not sure how to do it.

    thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter kvnmcwebn

    (@kvnmcwebn)

    oh and here is the mega menu widget

    if ( function_exists('register_sidebar') ){
        register_sidebar(array(
            'name' => 'my_mega_menu',
            'before_widget' => '<div id="my-mega-menu-widget">',
            'after_widget' => '</div>',
            'before_title' => '',
            'after_title' => '',
    ));
    }
Viewing 1 replies (of 1 total)
  • The topic ‘don't understand multiple sidebars -widget area not showing up.’ is closed to new replies.