Open renintw opened 5 months ago
@renintw did you get anywhere with this? It's come up a few times that block themes don't clone easily - it was suggested that the create block theme community plugin could get us someway there.
when attempting to clone a block theme (tt4) noting some things i'm noticing missing:
If content/media isn't cloned is it a true clone of another site?
When I previously helped develop the website, and from feedback I saw over time, it doesn't matter if content and media aren't cloned. But patterns, template parts, and templates are important and really what people want. The remote CSS location doesn't need to be cloned either since a new folder should be created each time.
Some findings:
Testing the "Create Block Theme" plugin:
The exported ZIP file does not include the patterns and templates added to the site.
I'm pretty certain it should.
I'm pretty certain it should.
I retested this locally rather than on the testing site again. Patterns didn't get exported. As for custom templates, they will be exported with the prefix 'wp-custom-template'.
Update Found that patterns are exported only after the "Save Changes" in the Create Block Theme tool is pressed. Initially, the default settings appear as shown in the image, but they won't take effect until "Save Changes" again. However, if users create patterns without selecting "synced," those patterns still won't be exported.
Additionally, any images added to the site must have the "Localize Images" option selected in order to be exported.
Describe the bug
https://wordpress.slack.com/archives/C08M59V3P/p1715272078520129
Details pending completion.