Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #53 from szk11001/master
Disable footer fallback menu & syntax fix
  • Loading branch information
jmr06005 committed Nov 13, 2014
2 parents 76f8672 + 6ff7cbe commit 6be3da2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion footer.php
Expand Up @@ -62,7 +62,8 @@
'menu' => 'Footer',
'container' => false,
'items_wrap' => '%3$s',
'depth' => 1
'depth' => 1,
'fallback_cb' => false
);
wp_nav_menu( $defaults );
}
Expand Down
4 changes: 2 additions & 2 deletions inc/nav.php
Expand Up @@ -15,8 +15,8 @@
<?php _e( 'Skip to content', 'cs' ); ?></a>
<div class="collapse navbar-collapse" id="primary-nav">
<?php
$menu_at_primary_location = get_nav_menu_locations();
$menu_at_primary_location = $menu_at_primary_location['primary'];
$locations = get_nav_menu_locations();
$menu_at_primary_location = $locations['primary'];
$items = wp_get_nav_menu_items( $menu_at_primary_location );
if(empty($items)){
echo '<ul class="nav navbar-nav"><li><a href="'.home_url().'">Home</a></li></ul>';
Expand Down

0 comments on commit 6be3da2

Please sign in to comment.