WordPress.org

Support

Support » Themes and Templates » [Resolved] Add New Widget Area Under Menu

[Resolved] Add New Widget Area Under Menu

  • Hello,

    I’m wondering if it’s at all possible to add a new widget area under the theme’s menu and if so, how would I go about doing it?

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ok, I’ve been able to create the widget area by adding the following code.

    if (function_exists('register_sidebar')) {
    	register_sidebar(array(
    		'name'=> 'Top Wiki',
    		'id' => 'top_wiki',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3>',
    		'after_title' => '</h3>',
    ));

    But I can’t figure out how to get it to display.

    http://www.soniccollectors.com/

    Got it to work by adding the following to the header.php

    <?php
     // Custom widget Area Start
     if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Top_Wiki') ) : ?>
    <?php endif;
    // Custom widget Area End
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Add New Widget Area Under Menu’ is closed to new replies.