ThemeShaper Forums » Thematic

[closed]

Wrap Subsidiary Aside

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

Tags:

  1. cannobbio
    Member

    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 3 years ago #
  2. yitwail
    Member

    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
            thematic_abovesubasides();
        }
    }
    add_action('widget_area_subsidiaries', 'add_abovesubasides', 9);

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

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.