Footers in Bp-social theme

Hi,

How to add footer widgets in bp-social theme? I have seen themes containing footer1 to footer4 (totally 4 widgets). I want to have that kind of stuffs in bp-social.. Pls guide me on this.
Thanks in advance.

  • katypurviance
    • Site Builder, Child of Zeus

    Could someone help me with a little trouble shooting?

    I'm using the theme Edu Clean. I <strike>added</strike> tried to add three footer widgets. I followed the instructions at these two pages http://www.tipsandtricks-hq.com/how-to-add-widgets-to-wordpress-themes-footer-1033 and http://www.sueblimely.com/add-widget-ready-sidebars-to-wordpress-footers/. (they're essentially the same. I tried looking at the video here http://buddydress.com/2010/04/add-a-widget-anywhere-in-3-simple-steps/ but there's an error with the video.

    First I registered my three widget areas by adding this under the code for other widget area in functions.php:

    register_sidebar(array(
    'name'=> __('Footer Left', TEMPLATE_DOMAIN),
    'id' => __('footer-left', TEMPLATE_DOMAIN),
    'description' => __('Footer Left Widget', TEMPLATE_DOMAIN),
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ));
    
    register_sidebar(array(
    'name'=> __('Footer Center', TEMPLATE_DOMAIN),
    'id' => __('footer-center', TEMPLATE_DOMAIN),
    'description' => __('Footer Center Widget', TEMPLATE_DOMAIN),
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ));
    
    register_sidebar(array(
    'name'=> __('Footer Right', TEMPLATE_DOMAIN),
    'id' => __('footer-right', TEMPLATE_DOMAIN),
    'description' => __('Footer Right Widget', TEMPLATE_DOMAIN),
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ));

    I noticed that Edu Clean's other four widget areas do not use count before array(, so I didn't use it either. I think they didn't use a count because they registered each widget area separately so that they could give each one a unique name.

    Next in footer.php, underneath

    <div id="footer">
    <div id="footer-wrap">
    <div id="footer-container">

    I added my code:

    <div id="footer-sidebar" class="secondary">
    
    <div id="footer-left">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(5) ) : ?>
    <?php endif; ?>
    </div>
    
    <div id="footer-center">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(6) ) : ?>
    <?php endif; ?>
    </div>
    
    <div id="footer-right">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(7) ) : ?>
    <?php endif; ?>
    </div>
    
    </div>
    <div style="clear-both"></div>

    I used the numbers 5, 6, and 7 because that what number widget area they are. This seemed to be the model used by the tutorials.

    Finally, I went to style.css and added:

    #footer-sidebar {
    display:block;
    height: 250px;
    }
    
    #footer-left {
    float: left;
    width: 340px;
    margin-left:5px;
    margin-right:5px;
    }
    
    #footer-center {
    float: left;
    width: 340px;
    margin-right:5px;
    }
    
    #footer-right {
    float: left;
    width: 340px;
    }

    Here's what happened.

    I can see my three new widget areas in wp-admin/widgets.php and I can add widgets to them

    However, on my page itself, the footer is just a lot taller now, probably an extra 250px taller, but the widgets I added to my new widget areas do not show up.

    Here's what I tried:

    I was a little suspicious those numbers I put into:

    <div id="footer-right">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(<strong>7</strong>) ) : ?>
    <?php endif; ?>
    </div>

    So I looked at the codex under dynamic_sidebar. I tried experimenting, based on how I understood the codex. I replaced the number with the id name, and with sidebar-[id name]. Neither of these worked.

    I feel like I probably missed something really obvious. Can anyone guess what it is?

    Thanks!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.