Hi! How I can merge leader asides in thematic power blog? I mean those widgets area which are placed under the menu. I would like to merge second and third one (there will be a slideshow based on nextgen gallery) and in the first one I would like to put some text. Thank you!
ThemeShaper Forums » Power Blog
[closed]
Leader Asides in Power Blog - how can i merge it?
(3 posts)-
Posted 3 years ago #
-
Hi,
needs some work on the code:
1.) Remove:
register_sidebar(array( 'name' => '3rd leader Aside', 'id' => '3rd-leader-aside', 'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">', 'after_widget' => "</li>", 'before_title' => "<h3 class=\"widgettitle\">", 'after_title' => "</h3>\n", ));.. from childtheme_widgets_init().
2.) Change childtheme_leaderasides() to:
function childtheme_leaderasides() { ?> <?php if ( is_sidebar_active('1st-leader-aside') || is_sidebar_active('2nd-leader-aside') ) { // one of the leader asides has a widget ?> <div id="leader"> <div id="leader-container"> <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('1st-leader-aside') ) { // there are active widgets for this aside echo '<div id="first-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n"; dynamic_sidebar('1st-leader-aside'); echo '</ul>' . "\n" . '</div><!-- #first-leader .aside -->'. "\n"; } ?> <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('2nd-leader-aside') ) { // there are active widgets for this aside echo '<div id="second-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n"; dynamic_sidebar('2nd-leader-aside'); echo '</ul>' . "\n" . '</div><!-- #second-leader .aside -->'. "\n"; } ?> </div><!-- #leader-container --> </div><!-- #leader --> <?php } ?> <?php } add_action('thematic_belowheader','childtheme_leaderasides',6);3. Add:
#leader #second-leader.aside { width:632px; }to your style.css .. et voilĂ :)
Chris
Posted 3 years ago # -
Chris - I'll try this :)
BTW - this is the most supportive and helpfull forum ever! Thank you.
Posted 3 years ago #
Topic Closed
This topic has been closed to new replies.