Make WordPress Core

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's profile pbearne Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8
Component: Themes Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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

  1. 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
  2. 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)

#1 @pbearne
3 years ago

I had a go at adding a filter

But I can't find in the core where the folders are added (found in gutenberg plugin _gutenberg_get_template_file() )

#2 @SergeyBiryukov
3 years ago

  • Component changed from General to Themes
  • Description modified (diff)
Note: See TracTickets for help on using tickets.