Update 404 template based on H5BP
This commit is contained in:
9
404.php
9
404.php
@@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
<div class="alert alert-block fade in">
|
<div class="alert alert-block fade in">
|
||||||
<a class="close" data-dismiss="alert">×</a>
|
<a class="close" data-dismiss="alert">×</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>
|
</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>
|
<ul>
|
||||||
<li><?php _e('Check your spelling', 'roots'); ?></li>
|
<li><?php _e('a mistyped address', 'roots'); ?></li>
|
||||||
<li><?php printf(__('Return to the <a href="%s">home page</a>', 'roots'), home_url()); ?></li>
|
<li><?php _e('an out-of-date link', 'roots'); ?></li>
|
||||||
<li><?php _e('Click the <a href="javascript:history.back()">Back</a> button', 'roots'); ?></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
@@ -84,7 +84,7 @@ function roots_title() {
|
|||||||
} elseif (is_search()) {
|
} elseif (is_search()) {
|
||||||
printf(__('Search Results for %s', 'roots'), get_search_query());
|
printf(__('Search Results for %s', 'roots'), get_search_query());
|
||||||
} elseif (is_404()) {
|
} elseif (is_404()) {
|
||||||
_e('File Not Found', 'roots');
|
_e('Not Found', 'roots');
|
||||||
} else {
|
} else {
|
||||||
the_title();
|
the_title();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user