/ Published in: PHP
Our basic WP navigation menu setup. See [this page](http://codex.wordpress.org/Function_Reference/wp_nav_menu) for more documentation.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // place this code where you want your nav menu to appear wp_nav_menu( array('menu' => 'Main Nav', 'theme_location' => 'main-nav', 'container' => 'menu', 'menu_class' => 'sf-menu', 'menu_id' => 'suckerfishnav', 'before' => '' )); ?> <?php // put this code in your theme's functions.php file if (!is_nav_menu( 'main-nav' ) ) { } } ?>