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

Commit

Permalink
Added support for a '404' menu
Browse files Browse the repository at this point in the history
People can now add custom links to their 404 pages by creating a menu
called '404'.
  • Loading branch information
andrewmbacon committed Jan 19, 2015
1 parent ac3baee commit 4fcd4e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,23 @@
</header><!-- .page-header -->
<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links above or a search?', 'cs' ); ?></p>
<?php get_search_form(); ?>
<div class="col-sm-6">
<?php get_search_form(); ?>
</div>
<div class="col-sm-6">
<?php
if (wp_get_nav_menu_object('404')){
$defaults = array(
'menu' => '404',
'container' => false,
'items_wrap' => '%3$s',
'depth' => 1,
'fallback_cb' => false
);
wp_nav_menu( $defaults );
}
?>
</div>
</div><!-- .page-content -->
</div>
<div class="col-sm-6">
Expand Down
2 changes: 1 addition & 1 deletion js/min/cs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4fcd4e9

Please sign in to comment.