From ae32103c53eadb4e680ab6bc61328117d534eb98 Mon Sep 17 00:00:00 2001 From: Jeremy Prevost Date: Wed, 12 Apr 2023 13:17:04 -0400 Subject: [PATCH] Updates 404 page content Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/LM-270 How does this address that need: * Updates markup to match requested changes in linked ticket Document any side effects to this change: The 404 template and the default search results template both share the same search form partial. We don't generally expect the default search template to be used, but the changes to 404 do cause that to update as well. --- web/app/themes/mitlib-parent/404.php | 2 +- web/app/themes/mitlib-parent/inc/site-search.php | 12 ++++-------- web/app/themes/mitlib-parent/search.php | 6 ++++++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/web/app/themes/mitlib-parent/404.php b/web/app/themes/mitlib-parent/404.php index 90f2da88..d22bcc69 100644 --- a/web/app/themes/mitlib-parent/404.php +++ b/web/app/themes/mitlib-parent/404.php @@ -27,7 +27,7 @@
-

The requested content was not found.

+

Sorry, that link doesn’t work anymore. Get help below!

diff --git a/web/app/themes/mitlib-parent/inc/site-search.php b/web/app/themes/mitlib-parent/inc/site-search.php index 10493b02..307e90af 100644 --- a/web/app/themes/mitlib-parent/inc/site-search.php +++ b/web/app/themes/mitlib-parent/inc/site-search.php @@ -20,18 +20,14 @@ -

Browse our A-Z index of pages on this site.

- -

You can also check out these commonly-used resources:

+

Need help? Ask us!

+

Or try:

-

Need more help? Ask us!

diff --git a/web/app/themes/mitlib-parent/search.php b/web/app/themes/mitlib-parent/search.php index f3988789..d38e1423 100644 --- a/web/app/themes/mitlib-parent/search.php +++ b/web/app/themes/mitlib-parent/search.php @@ -2,6 +2,12 @@ /** * The template for displaying Search Results pages. * + * We generally don't rely on this template for _most_ of our site search. + * However, the template remains to handle built in search functionality in + * WordPress. + * + * Example link that uses this template: `/?s=keyword` + * * @package MITlib_Parent * @since 0.2.0 */