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

Not possible to create single/singular template in site editor #40814

Closed
florianbrinkmann opened this issue May 4, 2022 · 3 comments · Fixed by #40830
Closed

Not possible to create single/singular template in site editor #40814

florianbrinkmann opened this issue May 4, 2022 · 3 comments · Fixed by #40830
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Bug An existing feature does not function as intended

Comments

@florianbrinkmann
Copy link

Description

Maybe it is the wanted behavior, or I do something wrong, but I wonder why it is not possible to create a template for the single view of posts (single/singular template) directly from the site editor. I searched and found that it was possible to add the single-post template, but that was removed in #29668 (the single-post entry is still part of the templates array in the edit-site.js), and it seems that there was no replacement added.

Step-by-step reproduction instructions

  1. Activate a block template and, if it has a single/singular template file, remove that from the templates folder.
  2. Go to the templates list in the site editor and try to add a single/singular template

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6 RC1, without Gutenberg plugin.

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

Yes

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

Yes

@paaljoachim
Copy link
Contributor

Hey @florianbrinkmann

This issue might be associated to what you are talking about:
Site Editor: Add New - Custom/General template
#36860

@florianbrinkmann
Copy link
Author

Hi @paaljoachim,

thanks for the link! As far as I understand, your ticket is about the creation of custom page/post templates? I mean the template that is used for single posts by default (singular.php or single.php in Classic Themes).

@paaljoachim
Copy link
Contributor

Gotcha. The issue I made is mostly about creating custom templates, but it also crosses lightly into the single post default templates.

@priethor priethor added [Type] Bug An existing feature does not function as intended [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Template Editing Mode Related to the template editor available in the Block Editor labels May 5, 2022
@priethor priethor linked a pull request May 5, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants