Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twenty Twenty-One Blocks: Add 404 Template #87

Merged
merged 2 commits into from
Nov 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions twentytwentyone-blocks/assets/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ hr:not(.is-style-wide):not(.is-style-dots),
max-width: var(--wp--custom--responsive--aligndefault-width);
}

.wp-block[data-align="wide"] .wp-block-separator:not(.is-style-wide):not(.is-style-dots),
.wp-block[data-align="full"] .wp-block-separator:not(.is-style-wide):not(.is-style-dots),
hr.alignwide:not(.is-style-wide):not(.is-style-dots),
.wp-block-separator.alignwide:not(.is-style-wide):not(.is-style-dots),
hr.alignfull:not(.is-style-wide):not(.is-style-dots),
Expand Down
25 changes: 25 additions & 0 deletions twentytwentyone-blocks/block-templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- wp:template-part {"slug":"header","theme":"twentytwentyone-blocks","align":"full", "tagName":"header","className":"site-header"} /-->

<!-- wp:heading {"level":1,"align":"wide"} -->
<h1 class="alignwide">Nothing Here</h1>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once translation is possible in these templates, these strings should be adjusted so they're translatable.

<!-- /wp:heading -->

<!-- wp:separator {"align":"wide","className":"is-style-twentytwentyone-separator-thick"} -->
<hr class="wp-block-separator alignwide is-style-twentytwentyone-separator-thick"/>
<!-- /wp:separator -->

<!-- wp:spacer {"height":70} -->
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>It looks like nothing was found at this location. Maybe try a search?</p>
<!-- /wp:paragraph -->

<!-- wp:search {"label":"Search...","buttonText":"Search","buttonUseIcon":true} /-->

<!-- wp:spacer {"height":70} -->
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:template-part {"slug":"footer","theme":"twentytwentyone-blocks","align":"full","tagName":"footer","className":"site-footer"} /-->