gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Custom header template can't find Template Parts folder

Open lwangdu opened this issue 5 years ago • 3 comments

Description

I have created a custom header from WordPress dashboard and I can see my template on the WordPress dashboard. But when I go to themes, block-template-parts folder I don’t see my custom template that I have created it. I think that should be there Screen Shot 2021-11-02 at 4 10 19 PM Screen Shot 2021-11-02 at 4 11 54 PM

Step-by-step reproduction instructions

Click on Apperance than template parts and create new header template. Same like WordPress dashboard custom template doesn't syne with Template parts folder.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 5.8.1 Gutenberg 11.8 TwentyTwenty-Two Chrome and MacBook Pro

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

lwangdu avatar Nov 02 '21 23:11 lwangdu

Templates and template parts created using the WordPress interface are not saved as theme files. And when you make changes to existing templates and template parts, those changes are not saved to the theme files.

No changes alter the actual HTML files. In both cases, they are saved to the database. And what is saved to the database is used instead of the theme files.

You can export the websites templates and template parts as HTML files. The export option is in the Editor (formerly site editor) under the tools and options menu.

carolinan avatar Nov 03 '21 08:11 carolinan

Thank you so much for your responded. I will follow with your instruction.

lwangdu avatar Nov 03 '21 14:11 lwangdu

Closing as answered.

youknowriad avatar Aug 11 '26 12:08 youknowriad