summaryrefslogtreecommitdiffstats
path: root/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php')
-rw-r--r--wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php
new file mode 100644
index 0000000..9cfd50d
--- /dev/null
+++ b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * 404 content.
+ */
+return array(
+ 'title' => __( '404 content', 'twentytwentytwo' ),
+ 'inserter' => false,
+ 'content' => '<!-- wp:heading {"style":{"typography":{"fontSize":"clamp(4rem, 40vw, 20rem)","fontWeight":"200","lineHeight":"1"}},"className":"has-text-align-center"} -->
+ <h2 class="has-text-align-center" style="font-size:clamp(4rem, 40vw, 20rem);font-weight:200;line-height:1">' . esc_html( _x( '404', 'Error code for a webpage that is not found.', 'twentytwentytwo' ) ) . '</h2>
+ <!-- /wp:heading -->
+ <!-- wp:paragraph {"align":"center"} -->
+ <p class="has-text-align-center">' . esc_html__( 'This page could not be found. Maybe try a search?', 'twentytwentytwo' ) . '</p>
+ <!-- /wp:paragraph -->
+ <!-- wp:search {"label":"' . esc_html_x( 'Search', 'label', 'twentytwentytwo' ) . '","showLabel":false,"width":50,"widthUnit":"%","buttonText":"' . esc_html__( 'Search', 'twentytwentytwo' ) . '","buttonUseIcon":true,"align":"center"} /-->',
+);