I've created a third sidebar widget. I am sure I did it incorrectly, however, it is working as it should....except I cannot seem to reorder it in the admin. Its important to reorder as my client has a habit of messing up layouts badly, so I created these so she will put the correct content in the right place, & I need it to be as easy as possible :).
Here is my functions.php
// This will create your widget area
function my_widgets_init() {
register_sidebar(array(
'admin_menu_order' => 201,
'name' => 'Narrow Right Column 135px',
'id' => 'widget_area_third_aside',
'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
'after_widget' => "\n",
'before_title' => "<h3 class=\"widgettitle\">",
'after_title' => "</h3>\n",
));
}
add_action( 'init', 'my_widgets_init');
// adding the widget area to your child theme
function widget_area_third_aside() {
if ( function_exists('dynamic_sidebar') && is_sidebar_active('widget_area_third_aside') ) {
echo '<div id="third" class="aside main-aside">'. "\n" . '<ul class="xoxo">' . "\n";
dynamic_sidebar('widget_area_third_aside');
echo '' . "\n" . ''. "\n";
echo '' . "\n" . '</div><!-- #belowmainasides .aside -->'. "\n";
}
}
add_action('thematic_widget_area_third_aside', 'my_sidebar_widgets', 0);
function rename_widgetized_area($content) {
$content['Primary Aside']['args']['name'] = 'Wide Sidebar 300px';
$content['Secondary Aside']['args']['name'] = 'Narrow Left Column 135px';
return $content;
}
add_filter('thematic_widgetized_areas', 'rename_widgetized_area');
Here is my sidebar.php in my childtheme.
// action hook for placing content above the main asides
thematic_abovemainasides();
// action hook creating the primary aside
widget_area_primary_aside();
// action hook for placing content between primary and secondary aside
thematic_betweenmainasides();
// action hook creating the secondary aside
widget_area_secondary_aside();
// action hook creating the secondary aside
widget_area_third_aside();
// action hook for placing content below the main asides
thematic_belowmainasides();
And here is a link to the temp url I have applied this to.
http://174.121.151.252/~italians/
All is well on the actual site. In the admin, the new widget shows below the Page Bottom widget. I need it directly below the secondary.
I've copied and pasted so many different things that I am sure I have screwed something up, but like I said, widgets work great, just can't reorder them in the admin.
Tried to redo it filtering using this thread...
http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas
but then its giving me errors, I think the sidebar.php is conflicting that I used....I have a headache and really could use someone elses eyes please?