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

Site Editor Support Doc #93

Closed
annezazu opened this issue Dec 28, 2021 · 7 comments
Closed

Site Editor Support Doc #93

annezazu opened this issue Dec 28, 2021 · 7 comments
Assignees
Labels
5.9 Changes in 5.9 release block editor Gutenberg related issues new document Requests for new page/article. user documentation (HelpHub) Improvements or additions to end-user documentation

Comments

@annezazu
Copy link
Collaborator

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.

@annezazu annezazu added user documentation (HelpHub) Improvements or additions to end-user documentation 5.9 Changes in 5.9 release new document Requests for new page/article. block editor Gutenberg related issues labels Dec 28, 2021
@annezazu annezazu self-assigned this Dec 28, 2021
@annezazu
Copy link
Collaborator Author

@carolinan
Copy link
Collaborator

carolinan commented Jan 3, 2022

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:
front-page.php
The front page template is always used as the site front page if it exists, regardless of what settings on Admin > Settings > Reading.

home.php
The home page template is the front page by default. If you do not set WordPress to use a static front page, this template is used to show latest posts.

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)
This front-page template does not respect the reading settings, it always display the blocks that you add to it.
The user can not choose to create a home template.

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.
They were not able to do that without code in classic themes.

@carolinan
Copy link
Collaborator

carolinan commented Jan 3, 2022

Here is a new draft text for the home page:

How to update what your homepage displays

Your 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.
To learn how to select a static page for your homepage, please see the support article Creating a Static Front Page.

How to customize your homepage

To 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.
The support article for the Query Loop Block explains how to configure the block.

When you add a block inside the post template block, it is repeated for every post in the list. The Post Title and Post Featured Image, Post Author, Post Date, Post Category, and Post tags are examples of blocks that you can use to customize your blog.

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.
Next, open the page settings sidebar and select or create a new template in the Template section.

@annezazu
Copy link
Collaborator Author

annezazu commented Jan 5, 2022

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:

Please note that if you add a Front Page template in the Site Editor, it will always be used as the front page regardless of what setting you choose under Admin > Settings > Reading. You will need to either customize that template to your liking or remove it to then adjust the homepage settings again.

Otherwise, the following has been done:

  • Added in Styles, Templates, and Template part sections with links to support docs.
  • Added in a section on site icon since that actually got backported!
  • Added a section on how to return to your dashboard since I imagine this will come up.
  • Finished the section on "How to browse between templates and template parts" including a very short video.

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.

@annezazu annezazu moved this from Todo to In Progress in WP 5.9 Documentation Jan 5, 2022
@carolinan
Copy link
Collaborator

It looks good to me. I think it is ready, and if you come up with additional points, they can be added over time.
I think the length of the page is good too.

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.
For advanced users, there is also the new export feature, I'm not sure where that fits.

@annezazu
Copy link
Collaborator Author

annezazu commented Jan 5, 2022

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.

@annezazu annezazu moved this from In Progress to Done in WP 5.9 Documentation Jan 5, 2022
@annezazu
Copy link
Collaborator Author

annezazu commented Jan 5, 2022

@annezazu annezazu closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.9 Changes in 5.9 release block editor Gutenberg related issues new document Requests for new page/article. user documentation (HelpHub) Improvements or additions to end-user documentation
Projects
Status: Done
Development

No branches or pull requests

2 participants