-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add spacing sizes to the theme.json as in Twenty Twenty-Four theme. - Replace spacing with pixels values with spacing presets in header pattern. - Convert "Food for thoughts" to Heading 1, instead of Paragraph. - Convert "A collection of valuable thoughts by a very egocentric person." to Site Tagline block, instead of Paragraph. - Add header small pattern (note: added custom style in theme.json to define the align-items as baseline). - Replace header in 404, search and archive templates to use instead header small.
- Loading branch information
1 parent
c015c9b
commit ede54db
Showing
7 changed files
with
92 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- wp:pattern {"slug":"poetry/header-small"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Title: header small | ||
* Slug: poetry/header-small | ||
* Categories: hidden | ||
* Inserter: no | ||
*/ | ||
?> | ||
<!-- wp:group {"className":"header-small","style":{"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group header-small" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:group {"className":"header-small__container","style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"wrap","verticalAlignment":"top","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group header-small__container"><!-- wp:site-title {"level":0,"isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"medium"} /--> | ||
|
||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"0.25rem"}},"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group"><!-- wp:heading {"level":1,"style":{"typography":{"fontSize":"2rem"}}} --> | ||
<h1 class="wp-block-heading" style="font-size:2rem">Food for thoughts</h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:site-tagline {"style":{"typography":{"lineHeight":"1.5"}}} /--></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:image {"width":"auto","height":"64px","sizeSlug":"large","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-large is-resized"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/feather.png" alt="" style="width:auto;height:64px"/></figure> | ||
<!-- /wp:image --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:spacer {"height":"var:preset|spacing|30"} --> | ||
<div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters