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

Commit

Permalink
Fixing menus
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Oct 28, 2014
1 parent 1c23606 commit 3f0baf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +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()['primary'];
$menu_at_primary_location = get_nav_menu_locations();
$menu_at_primary_location = $menu_at_primary_location['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 3f0baf5

Please sign in to comment.