-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
What problem does this address?
Currently if a user creates a template part, it is not available to be chosen in the theme's available template part lists nor in the pattern section while the user is editing/building the page/post. However, if the user explicitly searches for the template part, it appears.
Also, adding the user created template part does not automatically replace the existing template part, instead is added along with the template's existing part.
The current implementation is quite confusing and adds unnecessary extra steps to find the template part and add it to a template and then delete the existing template part instead of simply replacing like the behaviour of the theme's default template parts.
Example - Let's say user wants to change the header for a template. User can choose from the many header template parts available in the list created by the theme author. And selecting any of the designs, replaces the current header automatically. User created template parts do not appear in the list nor do they automatically replace the existing header. Searching for and adding the user created Header adds it along with the the existing header instead of replacing it.
User created template part
Template Part not available in template part section
Template part not visible in the Patterns library
Template part appears if user explicitly searches for it
What is your proposed solution?
When a user creates a Template part, automatically add them to the theme's available template parts and the pattern library. So when the user wants to change the template part, it should just be a single click on the user created template part and if user browses through the pattern library, it should be visible under the appropriate section.