ThemeShaper Forums » Thematic

[closed]

added sidebars to home.php but I think I did it wrong

(4 posts)
  • Started 3 years ago by farout
  • Latest reply from farout
  • This topic is resolved
  1. farout
    Member

    How do I add sidebars to home.php in my child theme?

    I created a child theme. All the pages, single, search,etc all have the left and right sidebars per the excellent Thematic layout: 3c-fixed!

    </div><!-- #content -->

    <?php thematic_belowcontent();
    dynamic_sidebar('primary-aside');
    dynamic_sidebar('secondary-aside');
    ?>

    But that has all the wrong css.

    What am I doing wrong?

    Posted 3 years ago #
  2. farout
    Member

    <?php thematic_belowcontent();
    thematic_primary_aside();
    thematic_secondary_aside();
    ?>

    But where do I make the primary and secondary areas active?

    Posted 3 years ago #
  3. farout
    Member

    aso tried:
    function childtheme_secondary_aside() {
    if (is_page()) {
    if (is_sidebar_active('secondary-aside')) {
    echo thematic_before_widget_area('secondary-aside');
    dynamic_sidebar('secondary-aside');
    echo thematic_after_widget_area('secondary-aside');
    }
    }
    }
    .. and then .. without removing an action or so:

    function change_secondary_aside($content) {
    $content['Secondary Aside']['function'] = 'childtheme_secondary_aside';
    return $content;
    }
    add_filter('thematic_widgetized_areas','change_secondary_aside');

    nothing

    Posted 3 years ago #
  4. farout
    Member

    Resolved:

    I changed the home page to:
    </div><!-- #container -->

    <?php

    // action hook for placing content below #container
    thematic_belowcontainer();
    get_sidebar();
    // calling the standard sidebar
    //thematic_sidebar();

    // calling footer.php
    get_footer();

    ?>

    and now I see the sidebar - Thank you firebug!!

    I am sure I am still doing it wrong - but after 10 hours - it will do.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.