Skip to content

Knowledgebase

Editing a block theme header safely

wordpress

A block theme header is commonly a shared template part containing the logo, site identity and navigation. Edit the intended part and test its use across templates so a change made from one page does not create surprises elsewhere.

01 Identify the header in use

Open a representative page and note its logo, menu and call to action. In the Site Editor, inspect the corresponding template and select the Header part in List View. Some themes use different headers for landing pages, the homepage or the rest of the site.

Record the part's name and preserve the existing design through an appropriate backup or export before a significant restructure.

02 Make the targeted change

  1. Open Appearance > Editor and locate the header through Patterns or the template where it is used.
  2. Select the intended child block, such as Site Logo, Site Title or Navigation, rather than replacing the whole part unnecessarily.
  3. Update the content or supported layout settings. Check the logo's proportions and destination, and keep contact or action links current.
  4. Review the part's width, alignment and spacing in the context of the template.
  5. Save only the intended header and any deliberately changed navigation or style objects.

03 Verify shared and mobile layouts

Check the homepage, a normal page and a post that use the header. Test menu links, dropdowns, keyboard focus and the mobile overlay. A longer site title or new button can cause wrapping that did not occur in the previous design.

Confirm the header does not cover the start of page content or anchor destinations if custom sticky positioning is used. Check both signed-in and signed-out views because the administrator toolbar can affect spacing.

What if my header edit affects the wrong pages?

If a page that should have a different header also changed, inspect whether both templates reference the same part. Create a deliberate alternate part for a real design variation instead of repeatedly overwriting the shared original.

If the logo disappears, check the selected media and block settings before reuploading many copies. If navigation changed unexpectedly, review the selected menu object separately; header structure and menu content can be saved as distinct shared items.

Was this answer helpful?

Need a little more help?

Our support team can help you find the next step.

Contact support

Powered by WHMCompleteSolution