-
Notifications
You must be signed in to change notification settings - Fork 43
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
Site Editor Support Doc #93
Comments
Starting an empty doc here https://wordpress.org/support/wp-admin/post.php?post=15201243&action=edit so I can reference https://wordpress.org/support/article/site-editor/ in this issue: WordPress/gutenberg#21245 |
There is more than one way to add a static homepage, which is part of the difficulty. Themes have two templates that affect the homepage: home, and front-page. But this has never been relevant for end users, until now, because if the theme is built correctly, their settings just work. From the theme developer handbook: home.php Theme developers that use front-page.php normally use PHP to add conditional if/else statement to display different content depending on the setting: And this is not possible with the HTML templates. If the theme does not include a home.html or front-page.html template, the user can create a front-page template in the site editor (templates > Add new > Front page) Thirdly, if the theme does not include a home.html or front-page.html template, the user can edit the content of the home page by adding blocks to the index template without assigning a page as the static home page. |
Here is a new draft text for the home page: How to update what your homepage displaysYour homepage can show a list of your latest blog posts or a static page with custom content. Which setting you use depends on the templates that are included in your theme. To view the list of templates, go to the Administration Screen > Appearance > Editor (beta) > Templates. If your theme does not have a Home or Front page template, select the Add New button and create a new Front Page. If your theme has a Front Page template, click on the link with the template name to open the editor. If your theme has a Home template, you can edit the template or set what you want to appear in the Administration Screen > Settings > Reading. How to customize your homepageTo customize your homepage, go to the Administration Screen > Appearance > Editor (beta). The editor will open to your homepage, and you can start editing. Latest Blog Posts Block themes display lists of blog posts with the Query Loop block and the Post Template block. Static page If you have selected a static page for your home page, and you want it to have a different design than other pages, you need to assign it a template. First, open the page in the editor. |
Thanks SO much @carolinan. This is very helpful and has been integrated. My only concern is how to address what happens when you have the option to create a new Front page template which then isn't able to be selected from the Template list when editing a page you've set as your homepage. This might be fairly edge case though so am going to move on for now, unless you think otherwise. I agree this is pretty complex! For now, I've added this under "Static Page" to try to cover it:
Otherwise, the following has been done:
What's missing? Any edits? At this point, I'm going to move on to finalizing/updating template parts and template editor with more info so, between all the docs, we have everything covered. |
It looks good to me. I think it is ready, and if you come up with additional points, they can be added over time. There are many things that are relevant to editing in the site editor, like using the list view, and the template part in isolation, but I believe those are covered on other pages. |
Oohh great call. Added a section called "tools" and added in mentions of List View, patterns, and exporting. Left out template part in isolation as that will be covered for that page. Going to ship today in light of this convo in slack where current links in 5.9 RC1 are broken because these are not published. |
Similar to https://wordpress.org/support/article/wordpress-editor/ and https://wordpress.org/support/article/template-editor/, need to create a Site Editor support doc for now.
In the future, I can imagine there can be a consolidated version when the experiences are more streamlined. For now, it seems wise to have a separate Site Editor doc that links out to things like the block theme doc, Styles doc, etc.
The text was updated successfully, but these errors were encountered: