ThemeShaper Forums » Thematic

[closed]

Adding more subsidiary areas

(2 posts)
  • Started 13 years ago by rscamero92
  • Latest reply from rscamero92
  • This topic is not resolved
  1. I've been tinkering around and I followed this post....

    http://forums.themeshaper.com/topic/how-can-i-add-multiple-subsidiaries#post-15033

    and was able to ad a 4th, 5th and 6th sub area. The 4th one is showing up and I'm able to style the CSS for it, But the 5th and sixth is not. Here is my code from my functions.php..

    //
    // register the 4th widget area...
    function add_fourth_subsidiary(){
    register_sidebar(array(
    'name' => '4th Subsidiary Aside',
    'id' => '4th-subsidiary-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => thematic_before_title(),
    'after_title' => thematic_after_title(),
    ));
    }
    add_action('init','add_fourth_subsidiary');

    // output the sidebar after the third subsidiary area
    function output_fourth_subsidiary(){
    if ( is_sidebar_active('4th-subsidiary-aside') ) { // there are active widgets for this aside
    echo '<div id="fourth" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('4th-subsidiary-aside');
    echo '' . "\n" . '</div><!-- #fourth .aside -->'. "\n";
    do_action('widget_area_4th_subsidiary_aside');
    }
    }
    add_action('thematic_after_third_sub', 'output_fourth_subsidiary');
    //
    //
    // register the 5th widget area...
    function add_fifth_subsidiary(){
    register_sidebar(array(
    'name' => '5th Subsidiary Aside',
    'id' => '5th-subsidiary-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => thematic_before_title(),
    'after_title' => thematic_after_title(),
    ));
    }
    add_action('init','add_fifth_subsidiary');

    // output the sidebar after the fourth subsidiary area
    function output_fifth_subsidiary(){
    if ( is_sidebar_active('5th-subsidiary-aside') ) { // there are active widgets for this aside
    echo '<div id="fifth" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('5th-subsidiary-aside');
    echo '' . "\n" . '</div><!-- #fifth .aside -->'. "\n";
    do_action('widget_area_5th_subsidiary_aside');
    }
    }
    add_action('thematic_after_fourth_sub', 'output_fifth_subsidiary');
    //
    //
    // register the 6th widget area...
    function add_sixth_subsidiary(){
    register_sidebar(array(
    'name' => '6th Subsidiary Aside',
    'id' => '6th-subsidiary-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => thematic_before_title(),
    'after_title' => thematic_after_title(),
    ));
    }
    add_action('init','add_sixth_subsidiary');
    //
    // output the sidebar after the fifth subsidiary area
    function output_sixth_subsidiary(){
    if ( is_sidebar_active('6th-subsidiary-aside') ) { // there are active widgets for this aside
    echo '<div id="sixth" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('6th-subsidiary-aside');
    echo '' . "\n" . '</div><!-- #sixth .aside -->'. "\n";
    do_action('widget_area_6th_subsidiary_aside');
    }
    }
    add_action('thematic_after_fifth_sub', 'output_sixth_subsidiary');

    and my CSS codes...

    #subsidiary {
    width:990px;
    margin:0 auto;
    overflow:visible;
    }
    #subsidiary .aside {
    width:300px;
    float:left;
    margin:5px;
    }
    #subsidiary #first {
    background-color: #CCC;
    }
    #subsidiary #second {
    background-color: #999;
    }
    #subsidiary #third {
    background-color: #666;
    }
    #subsidiary #fourth {
    background-color: #999;
    }
    #subsidiary #fifth {
    background-color: #666;
    }
    #subsidiary #sixth {
    background-color: #333;
    }

    Posted 13 years ago #
  2. What do I need to do to make the 5th and 6th show up?

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.