Return to Snippet

Revision: 42889
at April 22, 2011 10:40 by mindshare


Updated Code
<?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 ( function_exists('register_nav_menus') ) {
	register_nav_menus(array('main-nav' => 'Main Nav'));
	if (!is_nav_menu( 'main-nav' ) ) {
		wp_create_nav_menu( 'Main Nav', array( 'slug' => 'main-nav' ) );
	}
}
?>

Revision: 42888
at April 22, 2011 10:39 by mindshare


Updated Code
<?php
// place this code where you want you 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 ( function_exists('register_nav_menus') ) {
	register_nav_menus(array('main-nav' => 'Main Nav'));
	if (!is_nav_menu( 'main-nav' ) ) {
		wp_create_nav_menu( 'Main Nav', array( 'slug' => 'main-nav' ) );
	}
}
?>

Revision: 42887
at March 12, 2011 03:54 by mindshare


Initial Code
<?php wp_nav_menu( array('menu' => 'Main Nav', 'theme_location' => 'main-nav', 'container' => 'menu', 'menu_class' => 'sf-menu', 'menu_id' => 'suckerfishnav', 'before' => '' )); ?>

<?php
if ( function_exists('register_nav_menus') ) {
	register_nav_menus(array('main-nav' => 'Main Nav'));
	if (!is_nav_menu( 'main-nav' ) ) {
		wp_create_nav_menu( 'Main Nav', array( 'slug' => 'main-nav' ) );
	}
}
?>

Initial URL


Initial Description
Our basic WP navigation menu setup. See [this page](http://codex.wordpress.org/Function_Reference/wp_nav_menu) for more documentation.

Initial Title
Wp Nav Menu  Setup

Initial Tags
wordpress

Initial Language
PHP