Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

Site Editor: add option to duplicate custom template #65424

Open IoanaAMuresan opened 2 years ago

IoanaAMuresan commented 2 years ago

What

Customer this week (5360890-zd) asked for a way to duplicate an FSE template; I expected to find the option in the 3 dots next to the template - but there was no such option. Next, I expected to see the possibility to create ALL types of templates under the Add new button - but regular page, 404 etc. did not appear there. I provided a convoluted workaround that involved copy pasting code from an existing template into a new page, then saving that as a draft so the new template is added to the list, then deleting the draft. In retrospect, an easier solution would have been to open the template in question and then save it as a new one, but the Duplicate button suggested below would be a cleaner solution.

Why

It's helpful to test alternative templates without necessarily editing the default one - because if you make changes and then revert to default, you lose all edits with no way to save them.

How

Duplicate template
Greatdane commented 2 years ago

Core feature request is here:

github-actions[bot] commented 2 years ago

Support References

This comment is automatically generated. Please do not edit it.