Problem: when copy-pasting a Word document to WordPress, hyperlinks are preserved but bookmarks are gone.
Solution:
- In Microsoft Word create them as hyperlinks
- Paste it to WordPress
- Change the hyperlinks to anchor links using Notepad
- Paste back to WordPress
Step by step:
Step 1. In Microsoft Word, create them as hyperlinks
- In a blank Microsoft Word document, create this:

Both of the “Section 1” are normal hypelinks, with text = “Section1” (no space), address = “#section1” (no space with # prefix) like this:

- Highlight it, control-K (Insert Hyperlink), type Address = #Section 1 (notice the hash in the front).
- Create Section 2 and Section 3 the same way.
Step 2. Copy to WordPress
- Control-A (select all)
- Copy paste to WordPress visual editor.
Step 3. Replace the hyperlinks to anchor links in Notepad
- Control-Shift-Alt-M (switch to Code Editor)
- Control-A (select all)
- Paste to Notepad (Notepad++ is better)
- Control-H (replace), replace href with name, and remove the # as follows:
find what: <a href=”#, replace with: <a name=”

Step 4. Paste back to WordPress
- Control-A and paste back to WordPress code editor.
- Click Update on the top right corner
- View the page and test the hyperlink