On February 3, 2012 at 7:03 am
Here is how you can add a second menu in the footer:
You will have to edit 3 files.
1. Go to Appearance >Editor and select “functions.php” file from right and find this line:
//Register Menus
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'Triton' )
) );
And replace it with:
//Register Menus
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'Triton' ),
'footer_menu' => __( 'Footer Navigation', 'Triton' )
) );
2. Then select “footer.php”from right and find this line:
<div class="copytext">
<?php echo $option['trt_foot']; ?>
</div>
And replace it with:
<div class="copytext">
<?php echo $option['trt_foot']; ?>
</div>
<div id="footmenu">
<?php wp_nav_menu( array( 'container_class' => 'menu-footer', 'theme_location' => 'footer_menu', 'depth' => 0, 'fallback_cb' =>false) ); ?>
</div>
3. Then select “stylesheet” from right and add this line to the very bottom:
#footmenu{ float:right;font-size:12px; float:left; width:60%;}
.menu-footer{ float:right; margin-bottom:15px;}
#footmenu ul{ margin:0; padding:0;}
#footmenu ul li{ float:left; padding:0 10px; list-style-type:none;}
#footmenu ul li a{color:#424242; text-decoration:none;}
#footmenu .sub-menu{ display:none;}
Thats all, Now you can add menu to the footer from Appearance> Menus