Skip to content

Commit

Permalink
Commented out dynamic nav menus for hardcoded ones
Browse files Browse the repository at this point in the history
  • Loading branch information
voblak2 committed Jul 29, 2020
1 parent 05c360a commit dd62b9e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
18 changes: 10 additions & 8 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,31 @@
<div class="site-footer__col-two">
<h3 class="headline headline--small">Explore</h3>
<nav class="nav-list">
<?php wp_nav_menu(array(
<!-- <?php wp_nav_menu(array(
'theme_location' => 'footerLocationOne'
)); ?>
<!-- <ul>
)); ?> -->
<!--Commented out the dynamic nav menus above in favor of the hard coded ones below-->
<ul>
<li><a href="<?php echo site_url('/about-us') ?>">About Us</a></li>
<li><a href="#">Programs</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Campuses</a></li>
</ul> -->
</ul>
</nav>
</div>

<div class="site-footer__col-three">
<h3 class="headline headline--small">Learn</h3>
<nav class="nav-list">
<?php wp_nav_menu(array(
<!-- <?php wp_nav_menu(array(
'theme_location' => 'footerLocationTwo'
)); ?>
<!-- <ul>
)); ?> -->
<!--Commented out the dynamic nav menus above in favor of the hard coded ones below-->
<ul>
<li><a href="#">Legal</a></li>
<li><a href="<?php echo site_url('/privacy-policy')?>">Privacy</a></li>
<li><a href="#">Careers</a></li>
</ul> -->
</ul>
</nav>
</div>
</div>
Expand Down
10 changes: 6 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ function ignite_files()
}
add_action('wp_enqueue_scripts', 'ignite_files');

/*function university_features below contains the dynamic nav menu items used in the footer and header files. They are the commented out ones*/

function university_features() {
register_nav_menu('headerMenuLocation', 'Header Menu Location');
/*register_nav_menu('headerMenuLocation', 'Header Menu Location');
register_nav_menu('footerLocationOne', 'Footer Location One');
register_nav_menu('footerLocationTwo', 'Footer Location Two');
register_nav_menu('footerLocationTwo', 'Footer Location Two');*/
add_theme_support('title-tag');
}
}

add_action('after_setup_theme', 'university_features');

?>
?>
11 changes: 6 additions & 5 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@
<i class="site-header__menu-trigger fa fa-bars" aria-hidden="true"></i>
<div class="site-header__menu group">
<nav class="main-navigation">
<?php wp_nav_menu(array(
<!-- <?php wp_nav_menu(array(
'theme_location' => 'headerMenuLocation'
)); ?>
<!-- <ul>
<li><a href="<?php echo site_url('/about-us') ?>">About Us</a></li>
)); ?> -->
<!--Commented out the dynamic nav menus above in favor of the hard coded ones below-->
<ul>
<li <?php if (is_page('about-us')) echo 'class="current_menu_item"' ?>><a href="<?php echo site_url('/about-us') ?>">About Us</a></li>
<li><a href="#">Programs</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Campuses</a></li>
<li><a href="#">Blog</a></li>
</ul> -->
</ul>
</nav>
<div class="site-header__util">
<a href="#" class="btn btn--small btn--orange float-left push-right">Login</a>
Expand Down

0 comments on commit dd62b9e

Please sign in to comment.