Skip to content

Commit e241320

Browse files
authored
Update readme.md template header and footer docs
Add details for style variations
1 parent 381a0f5 commit e241320

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

readme.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,15 @@ Run the script to sync the pattern content. This syncs from the remote page cont
180180

181181
View the new page, it should contain the synced content.
182182

183-
If necessary, update the header & footer style in the page template:
183+
If necessary, update the header & footer style in the page template. You can pass custom styles like
184+
185+
`<!-- wp:wporg/global-header {"style":{"border":{"bottom":{"color":"var:preset|color|light-grey-1","style":"solid","width":"1px"},"top":{},"right":{},"left":{}}},"backgroundColor":"white","textColor":"charcoal-2"} /-->`
186+
187+
Or preset style variations:
184188

185189
- White on black: `<!-- wp:wporg/global-header /-->`
186-
- Black on white: `<!-- wp:wporg/global-header {"backgroundColor":"white","textColor":"charcoal-2"} /-->`
187-
- White on blue: `<!-- wp:wporg/global-header {"backgroundColor":"blueberry-1","textColor":"white"} /-->`
190+
- Black on white: `<!-- wp:wporg/global-header {"style":"black-on-white"} /-->`
191+
- White on blue: `<!-- wp:wporg/global-footer {"style":"white-on-blue"} /-->`
188192

189193
Verify that the changes look correct, and commit the changes to github. Wait for the actions to finish.
190194

0 commit comments

Comments
 (0)