How to Fix Text Moving When Editing Word Header Boxes
Question details
Users experience text shifting across pages when opening or editing headers in long documents.

- Product
- Word / WPS Writer
- Device & OS
- not provided
- Scenario
- Editing or updating headers manually in complex documents with multiple sections.
- Observed behavior
- Text moves unexpectedly between pages when the header is opened or manually edited, making header content difficult to maintain consistently.
Before modifying your headers, turn on the 'Show/Hide Editing Marks' feature to visualize section breaks and hidden paragraph marks that might be causing layout shifts.
Automate Headers Using the StyleRef Field
Replace manual text entry with a StyleRef field to automatically pull the correct heading into the header without disrupting your document's page layout.
Manually typing chapter or section names into a header can cause spacing issues or unintentional shifts when content changes. Using a StyleRef field automatically references existing text based on applied styles, ensuring your headers remain accurate and your layout stable.
Double-click the top margin of your document to open the Header & Footer tools.
Delete the manually typed text or excessive paragraph returns that are causing the layout issues.
Go to the Insert tab, select 'Quick Parts' or 'Field', and choose 'StyleRef' from the list of available fields.
Select the Heading style (e.g., Heading 1) that corresponds to your chapter titles, then click OK to apply it.

Check Section Breaks and Linkage
Ensure that section breaks are properly placed and headers are unlinked if they need to display different text across chapters.
Easily Manage Headers and Footers in WPS Writer
WPS Writer offers intuitive header and footer controls, making it simple to insert automatic fields, manage section breaks, and maintain stable document layouts without unexpected text shifting.
- 1. Access Header Settings: Double-click the top margin of your document in WPS Writer to instantly activate the Header and Footer tab.
- 2. Insert Dynamic Fields: Click 'Insert' within the Header tab to seamlessly add dynamic Fields like StyleRef, date, or page numbers.
- 3. Manage Section Links: Use the clear 'Link to Previous' button on the ribbon to quickly isolate headers between different document chapters.

Frequently Asked Questions
Why does my entire document's formatting change when I edit one header?
By default, headers are linked across the entire document. If you change the text or spacing in one, all linked headers will update. You need to insert a Next Page Section Break and deselect 'Link to Previous' to edit them independently.
How do I hide the header on the first page only?
Double-click the header to open the Header & Footer menu, then check the box for 'Different First Page'. You can then delete or modify the header text on page one while keeping the rest of the document's headers intact.
What is the fastest way to view hidden section breaks?
Click the 'Show/Hide Editing Marks' button (which looks like a paragraph symbol, ¶) located on the Home tab. This reveals all hidden formatting marks, including page breaks, section breaks, and extraneous paragraph returns.




