-
Notifications
You must be signed in to change notification settings - Fork 57
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
Error: "Template part has been deleted or unavailable:header". #429
Comments
There's a problem with handling the template parts - You can easly fix it by adding to the frontpage.html "theme name / slug", so get header part will look like:
Ofcourse you should update it also in DB by switch to show code and replace exported - buggy version of those lines. Same for any other template part. I found that this problem isn't always the problem with Create Theme Plugin, but mostly when theme has a name where 2 or more words, or / and template part has own pattern inside. The above fix is quickfix / hotfix for developers that already creating the themes with this plugin. |
Just want to mention again that:
Thank you for your response. Indeed, It must be a pattern inside the parent theme causing error. The quick fox you provided, I don't fully understand where to insert that snippet? Luckily, I was able to manually create a child theme by creating a style.css and function.php file in the child theme folder and it is working for me. |
this: and this: You can read more about this bug here: |
This is the issue to watch. Rendering a template-part from a pattern doesn't work as it should unless you include the theme attribute, however including the theme attribute means that the theme HAS to be installed at the "top level" of the /theme folder which isn't always the case. Thus rendering correctly without the theme attribute is the fix to make. In the meantime I suggest avoid using template parts in patterns. |
Now that WordPress/gutenberg#54595 has been merged, can we close this issue? |
Yes, I think so! 🎉 |
I am still getting the issue of "Template part has been deleted or unavailable:header".
Objective: create child theme of blockbase and spectra.
Wordpress: I am on WP 6.2

create block theme version 1.13.1.
How to recreate the error:
"Template part has been deleted or unavailable:header".
"Template part has been deleted or unavailable:footer".
This error is there in many more places such as icons meta, post meta, etc.
The text was updated successfully, but these errors were encountered: