Opened 3 years ago
Last modified 3 years ago
#53353 new enhancement
have the ability to put FSE files in a theme subfolder
Reported by: | pbearne | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Themes | Keywords: | |
Focuses: | Cc: |
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.
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() )