-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Child theme on Multisite does not work #61608
Comments
One interesting that also happened is, if I install the TT24 theme, and leave it activated on all the sites / subsites and deactivate the parent theme, then, the Child Theme looks like it works because goes from the Broken Tab to the All tab. |
I think I found it… it needs an "index.php". If there is no file there, it doesn't work. |
Adding an empty index.php to TT24 on my multisite installation solved the problem for me, too. Thank you @javiercasares ! EDIT: By chance I found another way to work around this issue: When I encountered the issue mentioned in the OP, I had the plugin Create Theme Block Network Activated. The OP issue also disappears for me when the plugin Create Theme Block is NOT Network Activated (without the index.php file added to the TT24 theme). It seems fine to have the plugin activated for the individual site. |
Can confirm this is an issue with a missing index.php in a block theme that is used as a parent theme in a multisite environment. |
I am not able to reproduce this using the following steps:
Enable multisite that uses the path, not the subdomain. With the classic theme active, the Site Editor does not load the PHP template from my child theme. The preview looks like it is trying to load something, and there is no message saying that the current template is not editable. Is this what you mean with "When you go to the canva part, it broke /wp-admin/site-editor.php?canvas=edit" @javiercasares? Using Create Block Theme Version 2.3.0 to create:
redirects me to /wp-admin/site-editor.php?canvas=edit which does not load. |
I am testing the same steps on Windows 11:
Manually created child themes:Both the classic child theme and the block child theme activate without problems or error messages. Create Block Theme:
After creating the theme and pressing OK to reload the browser, it looks like the theme is active, but its not since it is not network enabled. Refreshing the theme screen in the admin shows that the new theme is not active. |
I was able to test sub domains using "Local", WordPress 6.5.5 and 6.6 RC2 on macOS and Windows11, both installations using PHP 8.1.29, and I can not reproduce the issue where the parent theme is missing. |
Have you also checked you had the index.php removed from the parent block theme? |
Yes, neither Twenty Twenty-Four or the parent theme created with create block theme has an index.php. |
My classic child theme that I manually created, did not include theme.json. |
I have been trying to reproduce this but can't do it either. |
There are still multiple issues open for this on Trac though. |
Nope, disabling the parent theme network wide does not have any effect on the subsite with the active child theme. It still works for me. |
Hi, |
Description
When activating a Child Theme in a Multisite it says:
The parent theme is missing. Please install the "abc" parent theme.
Also, the child theme goes to the "Broken" tab.
After doing the "step-by-step"
When you go to the canva part, it broke
/wp-admin/site-editor.php?canvas=edit
Related: #58549
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: