Support » Themes and Templates » add more menus on theme TwentyTwelve
add more menus on theme TwentyTwelve
-
Hello,
I know this question is very basic but I just can’t figure it out myself. I am new to WP.
How can I add more menus on TwentyTwelve. It said that it only allows one menu to show on the page/blog.Thank you! wanyu
site: http://www.madamechou.com
-
The easiest way to do this would be to make a child theme and then extend the function which sets the number of menus.
It’s not that difficult, but if you are brand new to WordPress, it might be a bit tricky.
You may want to look at responsive.
That theme has 4 menus.Hi Christine,
Thank you for your reply. well, this is what I want for my blog in theme twentytwelve:
in the same line with my “home” menu, I want four more menu right next to it. So it looks like: “home” ”example1” ”example2””example3””example4”, when click on each menu, it will take you to another page.I tried the register menus “http://codex.wordpress.org/Navigation_Menus”,
but not sure if I am in the right place for what I need.in functions.php, I just added:
//////////////
function register_my_menus() {
register_nav_menus(
array(
‘header-menu’ => __( ‘Header Menu’ ),
‘header-menu1’ => __( ‘Header Menu1’ ),
‘header-menu2’ => __( ‘Header Menu2’ ),
‘header-menu3’ => __( ‘Header Menu3’ ),
‘header-menu4’ => __( ‘Header Menu4’ ))
);
}
add_action( ‘init’, ‘register_my_menus’ );//////////////
to the bottom of the .phpI did see the new menus appear in the appearance/menu
Is this correct so far? what should I put
///////
<?php wp_nav_menu( array( ‘theme_location’ => ‘header-menu’ ) ); ?>
///////
and
///////
wp_nav_menu( array( ‘theme_location’ => ‘extra-menu’, ‘container_class’ => ‘my_extra_menu_class’ ) );
///////to make those menu appear right next to the menu “home”, rather than showing up as sub menus underneath menu “home”.
I am very basic with html and css. if some one can just tell me the code and what it should be modified or added, it will be a great help for me. thank you all in advance. wanyu
- The topic ‘add more menus on theme TwentyTwelve’ is closed to new replies.