Skip to content

Commit

Permalink
Adding Check for Navigation Option
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Apr 14, 2015
1 parent 1378c89 commit bde565e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,18 @@
</div>
<div id="nav-wrapper">
<div class="container">
<?php include 'inc/nav.php'; ?>
<?php
$top_nav_style = get_theme_mod('top_nav_style');
if ($top_nav_style == 'maxmegamenu'){
// load maxmegamenu top nav
wp_nav_menu(array(
'theme_location' => 'primary'
));
} else {
// load bootstrap top nav
include 'inc/nav.php';
}
?>
</div>
</div>
</header>
Expand Down

0 comments on commit bde565e

Please sign in to comment.