• Hi folks,

    I’ve been trying to add a new widget area to this site:
    https://www.burnardweb.com/caa

    On that home page I need to be able to put a widget in the bottom left corner. I followed some instructions and got it to show up there BUT then on my secondary pages (any of the other links), my sidebar widget area was gone. It was on the widget page but said “inactive.” I know it’s just my newbieness but I’m hoping someone can help. Here’s the code I put in the functions.php file:

    if (function_exists('register_sidebar')) {
    register_sidebar(array(
    'name' => 'Extra Widgets',
    'id' => 'extra-widgets',
    'description' => 'The extra widgets for your website.',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2>',
    'after_title' => '</h2>'
    ));
    }

    And then the code for the index page was this:

    <!--<div id="jim">
    <ul><li><?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Extra Widgets')) :
    endif; ?></li></ul></div>
    -->

    I just copied that info from a tutorial because I’m clueless. I don’t want to replace the sidebar that I have, I just needed to add a new widget area to the index/home page.

    Can anyone please direct me? I’m supposed to have this done for a charity on Monday and now I’m lost. Any help is very much appreciated.

  • The topic ‘Adding a new widget area trouble’ is closed to new replies.