Permalink
Browse files

Fixed menu support issue

  • Loading branch information...
1 parent 21f594a commit ff621a7917570c52acf29eba31f06a3e4b588dba ModLearning Team committed Nov 9, 2012
Showing with 12 additions and 1 deletion.
  1. +11 −0 functions.php
  2. +1 −1 header.php
View
@@ -107,6 +107,17 @@ function yeti_pagination() {
}
add_action( 'init', 'yeti_pagination' );
+/**
+ * Add Menu support in the header
+ */
+function register_my_menus() {
+ register_nav_menus(
+ array( 'header-menu' => __( 'Header Menu' ) )
+ );
+}
+add_action( 'init', 'register_my_menus' );
+
+
// Close the main PHP statement
?>
View
@@ -54,7 +54,7 @@
<a href="<?php echo get_bloginfo('url'); ?>"><img src="<?php echo THEME_DIR; ?>/images/yeti-header.png" /></a>
<ul class="right y-nav">
- <?php wp_nav_menu(); ?>
+ <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
</ul>
</section>
</div>

0 comments on commit ff621a7

Please sign in to comment.