Hi
I have tried to add a new widget area between the subsidiary and site info areas in the footer.
At the moment the Div setup up for the opening and closing of the new widget area is being displayed in the coding but it is not fetching the widget I placing in the widget area.
I have the following code :
<?php
//add new widget area between subsidiary and site info for menu
if (function_exists('childtheme_override_menufootopen')) {
function thematic_menufootopen() {
childtheme_override_menufootopen();
}
} else {
function thematic_menufootopen() { ?>
<div id="menu-footer-main">
<?php
}
add_action('thematic_footer', 'thematic_menufootopen', 17);
}
if (function_exists('childtheme_override_menu_foot')) {
function thematic_menu_foot() {
childtheme_override_menu_foot();
}
} else {
function thematic_menu_foot() {
thematic_menu_aside();
}
add_action('thematic_footer', 'thematic_menu_foot', 18);
}
if (function_exists('childtheme_override_menufooterclose')) {
function thematic_menufooterclose() {
childtheme_override_menufooterclose();
}
} else {
function thematic_menufooterclose() { ?>
</div><!-- #siteinfo -->
<?php
}
add_action('thematic_footer', 'thematic_menufooterclose', 19);
}
//add widget in widgets admin area
function menu_footer($content) {
$content['Menu Footer Aside'] = array(
'admin_menu_order' => 50,
'args' => array (
'name' => 'Menu Footer Aside',
'id' => 'menu-footer',
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
),
'action_hook' => 'thematic_footer',
'function' => 'thematic_menu_foot',
'priority' => 28,
);
return $content;
}
add_filter('thematic_widgetized_areas', 'menu_footer');
// And this is our new function that displays the widgetized area
function thematic_menu_aside() {
if (is_sidebar_active('menu_footer')) {
echo thematic_before_widget_area('menu_footer');
dynamic_sidebar('menu_footer');
echo thematic_after_widget_area('menu_footer');
}
}
?>
I am sure I have made a small mistake.
I am not sure if this is the correct way to add a new widget area to the footer without altering the default footer file.
I have added this in the functions folder .
Many thanks