Update 404 template based on H5BP

This commit is contained in:
Ben Word
2013-02-07 15:30:36 -06:00
parent be2e203cc5
commit 10cf6b0a64
2 changed files with 5 additions and 6 deletions

View File

@@ -2,14 +2,13 @@
<div class="alert alert-block fade in">
<a class="close" data-dismiss="alert">&times;</a>
<p><?php _e('The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.', 'roots'); ?></p>
<p><?php _e('Sorry, but the page you were trying to view does not exist.', 'roots'); ?></p>
</div>
<p><?php _e('Please try the following:', 'roots'); ?></p>
<p><?php _e('It looks like this was the result of either:', 'roots'); ?></p>
<ul>
<li><?php _e('Check your spelling', 'roots'); ?></li>
<li><?php printf(__('Return to the <a href="%s">home page</a>', 'roots'), home_url()); ?></li>
<li><?php _e('Click the <a href="javascript:history.back()">Back</a> button', 'roots'); ?></li>
<li><?php _e('a mistyped address', 'roots'); ?></li>
<li><?php _e('an out-of-date link', 'roots'); ?></li>
</ul>
<?php get_search_form(); ?>

View File

@@ -84,7 +84,7 @@ function roots_title() {
} elseif (is_search()) {
printf(__('Search Results for %s', 'roots'), get_search_query());
} elseif (is_404()) {
_e('File Not Found', 'roots');
_e('Not Found', 'roots');
} else {
the_title();
}