gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Can’t save custom header template

Open lwangdu opened this issue 5 years ago • 3 comments

Description

Can’t assign and save custom header template Screen Shot 1 Screen Shot 2 Screen Shot 3 Screen Shot 4 Screen Shot 5 Screen Shot 6

Step-by-step reproduction instructions

1 Created a new page and published view the page in front end and I am still login.

2 Click on the edit site and takes to the Front page instead of the new page.

3 Click Front Page arrow than I click on Browse all templates

4 Click on Back and click on the Template Parts, and click on Headers

5 and 6 Click custom temple and click save button. It doesn’t do anything.

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 22:11 lwangdu

Thank you for the clear steps. This process opens a header template part. It does not assign it to your current template.

When you select the template part in the black sidebar in the site editor, it opens it. The save button only activates when you have made changes to the template part.


To assign a template part you can do the following:

  1. Open the page you want to change in the site editor.

To add a new header, Select the block inserter. Type in "header". You will see previews of the headers that are available in the theme. Select a header from one of the previews, or select the header block. (The header block is an alias for template part.) Now you can choose an existing header or start with an empty header and add the blocks yourself. After you made these changes to your template, you can save the template. Or both the template and template part depending on what changes you made.

To replace an existing header, Select the header block. Select the replace option in the toolbar. -If the theme has provided headers, you can select one of them. After you made these changes to your template, you can save the template. Or both the template and template part depending on what changes you made.

carolinan avatar Nov 03 '21 06:11 carolinan

Do will do that thank you!

lwangdu avatar Nov 03 '21 19:11 lwangdu

Closing as answered.

youknowriad avatar Aug 11 '26 12:08 youknowriad