Skip to content

Commit

Permalink
[#122] Adding 404 page and pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget committed Jul 23, 2024
1 parent 9cba839 commit b67c498
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions wp-content/themes/wp-starter/patterns/hidden-404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Title: 404
* Slug: wp-starter/hidden-404
* Inserter: no
*/
?>

<!-- wp:heading {"level":1} -->
<h1 class="wp-block-heading" id="page-not-found"><?php echo esc_html_x( 'Page Not Found', 'Heading for a webpage that is not found', 'wp-starter' ); ?></h1>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'The page you are looking for does not exist, or it has been moved.', 'Message to convey that a webpage could not be found', 'wp-starter' ); ?></p>
<!-- /wp:paragraph -->
2 changes: 1 addition & 1 deletion wp-content/themes/wp-starter/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
<!-- wp:pattern {"slug":"iafffoundation/hidden-404"} /-->
<!-- wp:pattern {"slug":"wp-starter/hidden-404"} /-->
</main>
<!-- /wp:group -->

Expand Down

0 comments on commit b67c498

Please sign in to comment.