Hello!
I need to implement this menu in a WP3 site with Thematic:
http://www.i-marco.nl/weblog/jquery-accordion-3/
What I really want is not to change anything in the thematic framework files so I suppose I must:
1. Let my child theme to use the wp_nav_menu from my own functions.php file:
add_theme_support( 'menus' );
function child_access_menu() {
$menu_sys = 'wp_nav_menu';
return $menu_sys;
}
add_filter('thematic_menu_type', 'child_access_menu');
2. Add CSS code to CSS file.
3. Call the JS file from my functions.php file of my custom thematic child theme:
function load_my_menu() {
if ( !is_admin() ) // instruction to only load if it is not the admin area
wp_enqueue_script( 'menu', get_stylesheet_directory_uri() . '/js/menu.js', false, 0.1 );
}
add_action( 'template_redirect', 'load_my_menu' );
4. Change/add to the generated html markup the needed classes and here is where I'm lost. I can change some lines of code in header-extensions.php file, but I don't want my menu stop working when a upgrade it's done.
How can I change/add the needed classes?
4a. Change <ul class="sf-menu"> to <ul class="menu">.
4b. <ul class="acitem"> in secondary level.
Thank you very much for your assistance! :-)