Opened 5 years ago
Last modified 5 years ago
#53353 new enhancement
have the ability to put FSE files in a theme subfolder
| Reported by: | pbearne | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Themes | Version: | 5.8 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
Hi All
Looking at the FSE code and thinking how I would apply this to a theme.
It seems to me that we might what to be able to control where the theme.json and block-template folder are stored in a theme.
for 2 reasons
- control if a theme is using FSE via setting. if we have the setting in a folder and none in the root then until we set the folder as the location FSE will be off
- provide more than one set of options
This also makes the folder layout cleaner in current theme that what to support both classic and FSE modes
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I had a go at adding a filter
https://github.com/pbearne/wordpress-develop/tree/%2353353_folder_filter_for_FSE
But I can't find in the core where the folders are added (found in gutenberg plugin _gutenberg_get_template_file() )