Topic: Admin for additional secondary sidebars
So I figured out how to create additional secondary sidebars in Arras. I basically took the instructions for creating additional bottom content sidebars, but adapted it for secondary sidebars.
They are in CSS and have an empty placeholder on all my pages...but they have no widgets inside.
I don't know how to get the "secondary #2" and "secondary #3" sidebars to be accessible through the admin panel, so that I can drag & drop widgets into my new sidebars. Does anyone know how to do that?
Thanks!
For those who are interested, here's the code:
Launcher.php:
register_sidebar( array(
'name' => 'Secondary Sidebar #2',
'before_widget' => '<li id="%1$s" class="widgetcontainer clearfix">',
'after_widget' => '</li>',
'before_title' => '<h5 class="widgettitle">',
'after_title' => '</h5>'
) );
register_sidebar( array(
'name' => 'Secondary Sidebar #3',
'before_widget' => '<li id="%1$s" class="widgetcontainer clearfix">',
'after_widget' => '</li>',
'before_title' => '<h5 class="widgettitle">',
'after_title' => '</h5>'
) );Sidebar.php:
</div><!-- #primary -->
<div id="secondary" class="aside main-aside sidebar">
<ul class="xoxo">
<!-- Widgetized sidebar, if you have the plugin installed. -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Secondary Sidebar #1') ) : ?>
<li></li>
<?php endif; ?>
</ul>
</div><!-- #third -->
<div id="third" class="aside main-aside sidebar">
<ul class="xoxo">
<!-- Widgetized sidebar, if you have the plugin installed. -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Secondary Sidebar #2') ) : ?>
<li></li>
<?php endif; ?>
</ul>
</div><!-- #third -->
<div id="fourth" class="aside main-aside sidebar">
<ul class="xoxo">
<!-- Widgetized sidebar, if you have the plugin installed. -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Secondary Sidebar #3') ) : ?>
<li></li>
<?php endif; ?>
</ul>
<?php arras_below_sidebar() ?>
</div><!-- #fourth-->Last edited by dkanter (2011-05-26 08:31:15)