adding multiple menus in twenty thirteen child
-
I’m trying to add multiple menus to a child-theme of twenty thirteen. I can hack the functions.php of twenty-thirteen to register multiple menus, but when I try to add that functionality to the child-theme functions.php I keep getting the “white screen of hope you have ftp access.”
this works in parent theme:`
function twentythirteen_setup() {
register_nav_menus( array(
‘primary’ => ‘Navigation Menu’,
‘second-menu’ => ‘Second Menu’
) );
}`but not in child-theme:
`<? php
function register_my_menus() {
register_nav_menus( array(
‘primary’ => ‘Navigation Menu’,
‘second-menu’ => ‘Second Menu’
) );
}
add_action( ‘init’, ‘register_my_menus’ );
?>`There’s a bunch of other actions in
twenty-thirteen-setup
so I can’t override the whole thing like this:`if ( ! function_exists( ‘theme_special_nav’ ) ) {
function theme_special_nav() {
// Do something.
}
}`Any guidance?
- The topic ‘adding multiple menus in twenty thirteen child’ is closed to new replies.