-
Notifications
You must be signed in to change notification settings - Fork 26
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
Create pattern for hosting page #203
base: trunk
Are you sure you want to change the base?
Conversation
Regarding the PHP lint error, if you use the content exporter to create a pattern from the prod page the PHP should pass lint. See https://github.com/WordPress/wporg-main-2022#building-patterns-from-page-content You'll need to add the I wasn't aware of this workflow either when I started Enterprise, so we probably need to make it more prominent |
Thanks for pointing out that generator @adamwoodnz . Now that I know it's there it shouldn't be an issue, I probably should have asked beforehand. |
No worries :) One more tip; I find it more efficient to delete all the other entries from the manifest, so that only the page I'm working on gets run |
<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30","top":"var:preset|spacing|60"},"blockGap":"0px","margin":{"top":"0"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group" style="margin-top:0;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)"><!-- wp:paragraph {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|30"}}}} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these blocks that go to the edge of the page should use the Edge Spacing preset on left and right. This gives 80px padding on large screens and clamps to 20px on small.
Creates a new pattern for the hosting page, which will be used at https://wordpress.org/hosting.
To test, create a new page with the slug hosting-2, verify that when viewing the page the new hosting page content loads. (see screenshot).
Note that this PR is temporarily making changes to https://wordpress.org/hosting-2/ until launch. Launching will be replacing the instance of
hosting-2
withhosting
in theme-switcher.php