Locate Function.php and paste this code in it.
function register_my_menus() {
register_nav_menus(
array(
'left-menu' => __( 'Left Menu' ),
'home-menu' => __( 'Home Menu' )
)
);
}
add_action( 'init', 'register_my_menus' );
//Paste this code on any page or template...
<?php wp_nav_menu( array( 'theme_location' => 'left-menu' )); ?>
Here is the code for default menu.Remember don't do styling of <ul> Make a <div> outside to it and style that div.
example: .div ul { }
<?php wp_nav_menu( array( 'theme_location' => 'primary' )); ?>
function register_my_menus() {
register_nav_menus(
array(
'left-menu' => __( 'Left Menu' ),
'home-menu' => __( 'Home Menu' )
)
);
}
add_action( 'init', 'register_my_menus' );
//Paste this code on any page or template...
<?php wp_nav_menu( array( 'theme_location' => 'left-menu' )); ?>
Here is the code for default menu.Remember don't do styling of <ul> Make a <div> outside to it and style that div.
example: .div ul { }
<?php wp_nav_menu( array( 'theme_location' => 'primary' )); ?>
Exactly needed The same implementation..:)
ReplyDelete