Site editor theme export: Include local media in theme assets #41798
Labels
Developer Experience
Ideas about improving block and theme developer experience
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
When creating a block theme using the Site Editor, chances are that you want to add media like images and video.
If you choose media from the local media library, these files are not included when you export the theme.
The path to the media still points to the media library.
Some blocks allow using remote media, but remote media is not always an option.
-For example, if you want to share your theme in the WordPress.org theme directory, remote files are not allowed.
-We also can not use s.w.org as some sort of public image CDN for our themes (this is where some images for the pattern directory are hosted).
This leaves a manual step to include media in the theme and update the paths. I believe we need to solve this so that we can use the export as part of no-code theme creation.
What is your proposed solution?
Find a way to identify the media, save it in the theme folder, and update the paths.
The text was updated successfully, but these errors were encountered: