From dcc00fed345783bee9fdc856543ed03f2706f090 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:08:04 +1300 Subject: [PATCH] Remove search from 404 page The Make home site doesn't support search, unless it's a search originating from a handbook, see https://github.com/WordPress/wporg-make/blob/68086fcaf1ed927f19886337e88ba9d6362bd01c/source/wp-content/themes/wporg-make-2024/functions.php#L224 Fixes https://github.com/WordPress/wordpress.org/issues/446 --- .../themes/wporg-make-2024/patterns/404.php | 34 +++++++++++++++++++ .../themes/wporg-make-2024/templates/404.html | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 source/wp-content/themes/wporg-make-2024/patterns/404.php create mode 100644 source/wp-content/themes/wporg-make-2024/templates/404.html diff --git a/source/wp-content/themes/wporg-make-2024/patterns/404.php b/source/wp-content/themes/wporg-make-2024/patterns/404.php new file mode 100644 index 0000000..50e66eb --- /dev/null +++ b/source/wp-content/themes/wporg-make-2024/patterns/404.php @@ -0,0 +1,34 @@ + + + +
+
+

Change the text color of the group here to adjust "Oops" color.

+
+ + + +

+ + + +

+ the homepage.', 'make-wporg' ) ), + esc_url( get_site_url( null, '/' ) ) + ); + ?> +

+ + +
+ diff --git a/source/wp-content/themes/wporg-make-2024/templates/404.html b/source/wp-content/themes/wporg-make-2024/templates/404.html new file mode 100644 index 0000000..0fced69 --- /dev/null +++ b/source/wp-content/themes/wporg-make-2024/templates/404.html @@ -0,0 +1,3 @@ + + +