Directory

Child theme on Multisite does not work · Issue #61608 · WordPress/gutenberg · GitHub
Skip to content
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

Open
javiercasares opened this issue May 13, 2024 · 3 comments
Open

Child theme on Multisite does not work #61608

javiercasares opened this issue May 13, 2024 · 3 comments
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended

Comments

@javiercasares
Copy link

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

  1. Install a new WP Multisite with 2 subsites (main + subsite)
  2. Install the Create Block Theme plugin
  3. On the main site, go to the Editor → Create Block Theme → go to the "new" canva editor (using the new options and not the old ones).
  4. Go to the Create new theme from scratch.
  5. Go to the Multisite options and activate the new theme.
  6. Delete all the other themes.
  7. Go, again, to the canva editor, and Create New theme → create a Child theme
  8. Activate the Child Theme as Network (both parent and child may be activated)
  9. Go to the subsite and activate the Child theme

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.5
  • nginx
  • PHP 8.2
  • MariaDB 10.11
  • No plugins

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

@javiercasares javiercasares added the [Type] Bug An existing feature does not function as intended label May 13, 2024
@javiercasares
Copy link
Author

javiercasares commented May 13, 2024

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.

@javiercasares
Copy link
Author

I think I found it… it needs an "index.php". If there is no file there, it doesn't work.

@javiercasares javiercasares changed the title Child theme (with Create Theme Block) on Multisite does not work Child theme on Multisite does not work May 13, 2024
@jordesign jordesign added [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Testing Needs further testing to be confirmed. labels May 16, 2024
@nicofyve
Copy link

nicofyve commented May 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants