Skip to content

Commit

Permalink
Allow editing masthead links via menus
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed May 10, 2016
1 parent b0f802c commit 81aea80
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
<?php endif ?>
</nav>

<p class="additional">
<a href="">Information for Application Developers</a>
</p>
<?php wp_nav_menu( array(
'menu' => 'masthead-links',
'fallback_cb' => false,
'container' => false,
'menu_class' => 'additional',
)) ?>
</div>

<div class="content">
Expand Down
2 changes: 2 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
wp_enqueue_style( 'broker-authentication', get_stylesheet_directory_uri() . '/style.css' );
});

register_nav_menu( 'masthead-links', 'Additional Links for Homepage Masthead' );

/**
* Make the json_consumer post type viewable on the front end.
*/
Expand Down
3 changes: 3 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,7 @@ form#setupform {

.masthead .additional {
font-size: 0.8rem;
list-style-type: none;
padding: 0;
margin: 1em 0;
}

0 comments on commit 81aea80

Please sign in to comment.