Helga,
I am just temporarily using the footer template because I’m still moving things around and eventually all of it will go to functions.php, which is very long by now.
I have a series of containing divs within thematic_abovefooter(), and the secondary menu would be the second or third one.
I assume that in order to place the secondary menu where I want it, I need something in the fashion of :
if ((function_exists('has_nav_menu(secondary-menu)'))
echo [something that will display the secondary menu]
However, whatever I’ve tried so far hasn’t worked.
I'm currently using your code, which I modified slightly to read secondary-menu instead of top-menu:
function register_my_menus() {
register_nav_menus(
array(
'primary-menu' => __( 'Primary Menu' ),
'secondary-menu' => __( 'Secondary Menu' ),
)
);
}
add_action( 'init', 'register_my_menus' );
// Then, place a secondary menu in the footer
function secondary_menu() {
if ( has_nav_menu( 'secondary-menu' ) ) {
wp_nav_menu( array( 'theme_location' => 'secondary-menu',
'container_id'=>'secondary-menu',
'container_class' => 'clearfix ',
'menu_class' => 'sf-menu', // Assign the sf-menu class to the menu ul so that superfish works on this menu too
) );
}
}
add_action('thematic_abovefooter','secondary_menu');