Use current WordPress menu management capabilities. Do these two simple things.
Edit functions.php and add:
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus(
array(
'menu-1' => __( 'Menu 1' ), //Can be renamed as desired
'menu-2' => __( 'Menu 2' )
)
);
}
Next add to your header.php where you want the menu to appear:
<?php wp_nav_menu( array( 'theme_location' => 'menu-1' ) ); ?>
Now you can use the built in menu editing in the WordPress backend.
Thanks Flashbuddy, I tried this but I think this is not what I am looking for. I simply have 2 homepages and want 1.
I want the menu to appear where it currently is, I only want the 2 Homepages combined to 1.
No, you are wrong, this is exactly what you are looking for but sadly you don’t understand.
Tell us what theme you are using.
Copy your header code that calls the menu into pastebin and we’ll take a look.
Hehehe, ok. Sorry.
I am using Squirrel 1.4 theme. It is the picture on this page https://themes.trac.wordpress.org/ticket/7920. It can be downloaded in the WP themes collection.
Sorry, hadn’t read your last sentence…. here is the headercode:
[ Code moderated. For more than 10 lines of code please pastebin.com instead. ]
Great theme. There is built in support for WordPress menus. Are you using that support?
Watch my short video that explains adding and editing the menu in the squirrel theme:
Video>>