Skip to content
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

Add preview.html file to showcase a demo version of the theme #49661

Open
bradhogan opened this issue Apr 7, 2023 · 0 comments
Open

Add preview.html file to showcase a demo version of the theme #49661

bradhogan opened this issue Apr 7, 2023 · 0 comments
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@bradhogan
Copy link

What problem does this address?

Currently, the only way to have something that resembles a decent preview of a theme is to add a front-page.html or home.html template to your block theme and stack it with patterns. This proposes a rather confusing experience for someone when they go to edit their homepage content because they have to set the front page display as a page, but then that page is just a placeholder. They then have to go into the site editor and edit the front page template.

What is your proposed solution?

I suggest we allow block theme authors to create a file inside the root theme directory called preview.html where we can add patterns, etc. to create a look that we think represents our design well. This file would have no editing features or front-end display other than to simply be what is displayed if a person clicks "preview" to preview the theme. And if preview.html does not exist, the behavior just simply defaults to the original front-page.html, home.html or index.html.

@kathrynwp kathrynwp added [Type] Enhancement A suggestion for improvement. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants