-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Block] Post TitleAffects the Post Title BlockAffects the Post Title Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
If a custom margin values are manually added to the Post Title block via block markup, they're reflected in the editor, but are not present in the front-end.
Sample markup
<!-- wp:post-title {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}} /-->
Or, here's a block pattern that uses this markup:
<!-- wp:post-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"top","width":"160px"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:160px"><!-- wp:post-date {"fontSize":"small"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center","width":"75%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:75%"><!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}},"typography":{"fontSize":"clamp(3rem, 6vw, 4rem)"}}} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator is-style-wide"/>
<!-- /wp:separator -->
<!-- /wp:post-template -->
Screenshots
| Editor | Front-end |
|---|---|
![]() |
![]() |
| Editor | Front-end |
|---|---|
![]() |
![]() |
Metadata
Metadata
Assignees
Labels
[Block] Post TitleAffects the Post Title BlockAffects the Post Title Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended



