Skip to content

Commit 481f182

Browse files
committed
WDSBT-23 - Fix font error, and style post meta
1 parent 245032d commit 481f182

File tree

2 files changed

+47
-9
lines changed

2 files changed

+47
-9
lines changed

patterns/post-hero.php

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,25 @@
1212
?>
1313

1414
<!-- wp:group {"metadata":{"name":"Hero"},"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"backgroundColor":"primary-50","layout":{"type":"constrained"}} -->
15-
<div class="wp-block-group alignfull has-primary-50-background-color has-background" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)"><!-- wp:columns {"verticalAlignment":null,"align":"wide"} -->
16-
<div class="wp-block-columns alignwide"><!-- wp:column {"verticalAlignment":"top","layout":{"type":"constrained"}} -->
17-
<div class="wp-block-column is-vertically-aligned-top"><!-- wp:post-terms {"term":"category","prefix":"\u003cbr\u003e"} /-->
15+
<div class="wp-block-group alignfull has-primary-50-background-color has-background" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)">
1816

19-
<!-- wp:post-title /--></div>
20-
<!-- /wp:column -->
17+
<!-- wp:columns {"verticalAlignment":null,"align":"wide"} -->
18+
<div class="wp-block-columns alignwide">
2119

22-
<!-- wp:column {"verticalAlignment":"center","layout":{"type":"constrained"}} -->
23-
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:post-featured-image {"aspectRatio":"16/9","style":{"border":{"radius":"24px"}}} /--></div>
24-
<!-- /wp:column --></div>
25-
<!-- /wp:columns --></div>
20+
<!-- wp:column {"verticalAlignment":"top","layout":{"type":"constrained"}} -->
21+
<div class="wp-block-column is-vertically-aligned-top">
22+
<!-- wp:post-terms {"term":"category","prefix":""} /-->
23+
<!-- wp:post-title /-->
24+
</div>
25+
<!-- /wp:column -->
26+
27+
<!-- wp:column {"verticalAlignment":"center","layout":{"type":"constrained"}} -->
28+
<div class="wp-block-column is-vertically-aligned-center">
29+
<!-- wp:post-featured-image {"aspectRatio":"16/9","style":{"border":{"radius":"24px"}}} /-->
30+
</div>
31+
<!-- /wp:column -->
32+
</div>
33+
<!-- /wp:columns -->
34+
35+
</div>
2636
<!-- /wp:group -->

theme.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,34 @@
605605
"fontSize": "var(--wp--preset--font-size--xxxl)"
606606
}
607607
},
608+
"core/post-terms": {
609+
"typography": {
610+
"fontFamily": "var(--wp--preset--font-family--headline)",
611+
"fontSize": "0.75rem",
612+
"fontWeight": "400",
613+
"textTransform": "uppercase"
614+
},
615+
"spacing": {
616+
"padding": {
617+
"top": "0.75rem",
618+
"right": "0.75rem",
619+
"bottom": "0.75rem",
620+
"left": "0"
621+
}
622+
},
623+
"elements": {
624+
"link": {
625+
"spacing": {
626+
"padding": {
627+
"left": "0"
628+
}
629+
},
630+
"typography": {
631+
"fontWeight": "400"
632+
}
633+
}
634+
}
635+
},
608636
"core/preformatted": {
609637
"color": {
610638
"background": "var(--wp--preset--color--primary-50)",

0 commit comments

Comments
 (0)