ThemeShaper Forums » Thematic


Wrap Subsidiary Aside

(2 posts)
  • Started 11 years ago by cannobbio
  • Latest reply from yitwail
  • This topic is not resolved


  1. cannobbio

    I'm trying to wrap the subsidiary aside with a div with this function:

    // Subsidiary Asides Wrapper
    function subasides_start() { ?>
    <div id="subasides-wrapper">
    <?php }
    add_action ('thematic_abovesubasides','subasides_start');

    function subasides_end() { ?>
    </div><!-- #subasides-wrapper -->
    <?php }
    add_action ('thematic_belowsubasides','subasides_end');

    What am I missing? I cant hook anything in thematic_abovesubasides or thematic_belowsubasides.

    Thanx in advance!

    Posted 11 years ago #
  2. yitwail

    This is an old topic, but you can put something like this in functions.php:

    // implement missing hook
    function add_abovesubasides() {
        if ( is_active_sidebar('1st-subsidiary-aside') ||
             is_active_sidebar('2nd-subsidiary-aside') ||
             is_active_sidebar('3rd-subsidiary-aside') )
        { // one of the subsidiary asides has a widget
    add_action('widget_area_subsidiaries', 'add_abovesubasides', 9);

    although library/extensions/sidebar-extensions.php should have this built in already.

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.