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

[Bug] Blocks "pattern placeholder" bug #90

Closed
nathan-schmidt-viget opened this issue May 28, 2024 · 2 comments
Closed

[Bug] Blocks "pattern placeholder" bug #90

nathan-schmidt-viget opened this issue May 28, 2024 · 2 comments
Assignees

Comments

@nathan-schmidt-viget
Copy link
Contributor

nathan-schmidt-viget commented May 28, 2024

Blocks

When starting a new site all of our custom blocks havepattern placeholder as the child block. This also shows up for the custom patterns that are using our blocks.
The block then has nothing visible inside of it.

This shows up for all of our custom blocks

Screenshot 2024-05-28 at 9 17 57 AM Screenshot 2024-05-28 at 12 42 40 PM
@nathan-schmidt-viget
Copy link
Contributor Author

nathan-schmidt-viget commented May 28, 2024

Figured out what it is. When a new site is created the twig files don't get updated to the theme name. So they are still left as

{% set template = [
	[
		'core/pattern',
		{
			'slug': 'wp-starter/text-image-inner-blocks',
		}
	]
] %}

When the slug should be 'slug': '[sitename]/text-image-inner-blocks',

Updating all the wp-starter in the Twig files fixed the problem.

@nathan-schmidt-viget
Copy link
Contributor Author

Looked through the composer files, but could not pin point how to replace the string in the twig files. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants