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

Home page won't use home template #38345

Closed
gingerling opened this issue Jan 29, 2022 · 14 comments
Closed

Home page won't use home template #38345

gingerling opened this issue Jan 29, 2022 · 14 comments
Labels
[Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable

Comments

@gingerling
Copy link

gingerling commented Jan 29, 2022

Description

I have a static page listed under settings > reading as my homepage

Screenshot from 2022-01-29 11-59-00

However that page is using the "page" template not the home template

When I click edit site from the home page it shows this:

Screenshot from 2022-01-29 16-04-53

(and indeed the template content is the same as what's showing, also)

I have the default template called home page, which I have edited and is ready to be used. I expected this to show for my home page, and it says it should display in my circumstances

Screenshot from 2022-01-29 16-06-28

In the page editor this homepage showing as set as front page

Screenshot from 2022-01-29 16-07-50

The template in page settings is listed as default

Screenshot from 2022-01-29 16-09-04

There is no option to choose Home template:

Screenshot from 2022-01-29 16-09-22

I am aware I can choose the front page template, however, I don't want to as this is a blank template I must build the design from scratch. I have checked and find if I add the front page template, it does indeed replace content on the home page with a blank template.

I don't see any way to use the home template for the home page, right now.

Step-by-step reproduction instructions

as above

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 5.9

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

@carolinan
Copy link
Contributor

carolinan commented Jan 30, 2022

I have the default template called front page,

The front page template takes precedence over the home template, even if you change the reading settings. This is true also for classic themes. So if it exists you would need to delete it.

https://developer.wordpress.org/themes/basics/template-hierarchy/#front-page-display

@gingerling
Copy link
Author

I realized just now the front page template is showing on my blog page.

I'm not sure what "if it exists" means but I don't have this template in my list

Screenshot from 2022-01-30 12-23-27

and it's still showing in the add new button dropdown

Screenshot from 2022-01-30 12-23-49

Is there another way to verify this?

Additionally, the home page is not actually USING the front page template (that I don't think exists) - it's using page, so I don't think that this is what is happening

@carolinan
Copy link
Contributor

If it does not exist in the list, then that is not the page that is showing on the front.

@gingerling
Copy link
Author

gingerling commented Jan 31, 2022 via email

@carolinan
Copy link
Contributor

The static page uses the template that you set in the block editor, in the template section.
The page does not change template when it is set as the static home page.

@carolinan
Copy link
Contributor

Related: #38389

@gingerling
Copy link
Author

gingerling commented Feb 1, 2022

This text then, is confusing for me:

"Displays as the site's homepage, or as the posts page when a static home page isn't set." [home page template description][

Additionally, I am unable to chose the home page template from the dropdown in the page settings, as shown here:

image

I'm still super confused about what the intended functionality is here!

@gingerling
Copy link
Author

gingerling commented Feb 1, 2022

"Displays as the site's homepage, or as the posts page when a static home page isn't set."

I read this as:

"Displays as the site's homepage": this template displays for the homepage of the site (I assume post content will display anything from the page editor for that page)

"or as the posts page when a static home page isn't set": When the static home page IS set, this is the home page template. When the site displays the posts feed on the home page (and not a static page), this template used there also..

i.e Whatever it is that's on the home page of your website, be it blog feed or static content, then this is the template to edit.

but it seems like what is happening is this template only ever covers the posts page, if I made posts the front page it would display there, if posts are at /news then it shows there.

@carolinan
Copy link
Contributor

Ah, the description was changed for the next version of Gutenberg. The new text is "Displays posts on the homepage, or on the Posts page if a static homepage is set"
#38132

@gingerling
Copy link
Author

OOOOOOH! well that makes a big difference! Okay, so

Intended functionality is:

Set static home page
That page will use the "page" template UNLESS
Front Page template is set up
Then the entire page must be edited in the front page template, not with normal editor and template combo?

@carolinan
Copy link
Contributor

I believe so, yes.

@gingerling
Copy link
Author

gingerling commented Feb 1, 2022

okay. Has anyone asked if front page could actually have stuff in it rather than be blank? (can't see anything, but tbh I never do when I check!) The actual root cause behind all this is that I don't want to build from scratch, it's too much work. But I do need a little more control over the front page of the site.

@carolinan
Copy link
Contributor

Yes, There are explorations around adding some default content depending on the template

@annezazu
Copy link
Contributor

annezazu commented Feb 2, 2022

The actual root cause behind all this is that I don't want to build from scratch, it's too much work. But I do need a little more control over the front page of the site.

There's also work being explored around integrating patterns into the experience when you create a new template to make it easier to quickly get started: #36697

I'm going to close this out since this isn't an issue per say but general feedback that has been clarified thanks to the lovely @carolinan Happy to re-open if folks would prefer or if there is some action I'm missing that needs to be taken.

@annezazu annezazu closed this as completed Feb 2, 2022
@annezazu annezazu added [Feature] Full Site Editing [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable labels Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable
Projects
None yet
Development

No branches or pull requests

3 participants