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
Adding support for adding links to footer
  • Loading branch information
bcd04001 committed May 25, 2018
1 parent 23f24a5 commit 9124961
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions templates/footer.php
Expand Up @@ -36,6 +36,22 @@
<li>
<a href="<?php echo site_url(); ?>/wp-admin/">Webmaster Login</a>
</li>

<?php

// Only display the footer if a menu of "Footer" exists in the site.
if (wp_get_nav_menu_object('Footer')){
$defaults = array(
'menu' => 'Footer',
'container' => false,
'items_wrap' => '%3$s',
'depth' => 1,
'fallback_cb' => false
);
wp_nav_menu( $defaults );
}

?>
</ul>
</div>
</footer>
Expand Down

0 comments on commit 9124961

Please sign in to comment.