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

Templates: allow replacing theme templates with custom templates #61256

Open
liviopv opened this issue Apr 30, 2024 · 2 comments
Open

Templates: allow replacing theme templates with custom templates #61256

liviopv opened this issue Apr 30, 2024 · 2 comments
Labels
[Feature] Templates API Related to API powering block template functionality in the Site Editor [Type] Enhancement A suggestion for improvement.

Comments

@liviopv
Copy link

liviopv commented Apr 30, 2024

What problem does this address?

The template replacing/swapping option only works with templates bundled in the theme. User might want to design their own templates and use them to replace theme defaults using the options shipped in recent GB versions and WordPress 6.5

What is your proposed solution?

The "Transform Into:" option available in the inspector sidebar for Templates should surface custom templates.

@liviopv liviopv added the [Type] Enhancement A suggestion for improvement. label Apr 30, 2024
@jordesign jordesign added the [Feature] Templates API Related to API powering block template functionality in the Site Editor label May 5, 2024
@annezazu
Copy link
Contributor

Ah ha. Just ran into this with template parts and I assume it's the same problem. +1 to this cc @scruffian

@carolinan
Copy link
Contributor

I am not able to reproduce this, perhaps more information is needed.

  1. I created a new custom template through the Site Editor > Templates new.
  2. I created a new page and clicked on Template, and chose "Swap template". My custom template is available.

I am not sure what "Transform into" is. I do not see it in the interface.

If you meant the following flow:

  1. Activate Twenty Twenty-Four
  2. Go to Site Editor > Templates.
  3. Select and open the Blog Home template
  4. In the inspector, open the panel labeled "Design".
  5. View the optional designs.

If you meant that your custom template does not show under design, then these are not true theme templates, they are block patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Templates API Related to API powering block template functionality in the Site Editor [Type] Enhancement A suggestion for improvement.
4 participants