-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor not working on block theme that has no index.html #39931
Comments
I've ran into this issue, too. See: https://core.trac.wordpress.org/ticket/54910#comment:34 My suggestion was that we have the following flag in "isBlockTheme": true A |
@youknowriad curious what you think about this one. |
Now that index.php is not mandatory anymore as well, maybe we could add something like |
People might still want to include an index.php for security reasons... |
Hey folks - is this still relevant, or have we managed to work around it otherwise? |
I think it's still relevant. |
After (trying) to wrap my head around handling of It might make more sense (and give this more of a priority) if this is considered alongside other discussions about dealing with a static homepage and blog page vs. just "a file check". i.e #56244 |
Right now we are relying on the existence of an index.html template for a theme to be defined as a block theme, but I've encountered the following case now:
A block theme that has
According to https://developer.wordpress.org/themes/basics/template-hierarchy/ this covers all the possibilities and having an index.html file is redundant and the template is never used, but if we don't include it, then the theme doesn't work.
The workaround is having an index.html template that functions as an archive template and that feels kind of wrong to me.
/cc @WordPress/block-themers
The text was updated successfully, but these errors were encountered: