The default theme for WordPress places the links to pages in the sidebar. Moving them to the header is relatively easy to do if you’re comfortable making minor changes to the code.
The first thing is to find the path to the theme that you are using, for the default theme the path is:
⁄wordpress⁄wp-content⁄themes⁄default
For other themes the path will vary so make sure you have identified the correct one for the theme you have in use.
Then using your favourite text editor open up the following files:
- sidebar.php
- header.php
Note: Before you make any changes to these files make sure you have a backup
Next look for the following code fragment in sidebar.php which is used by WordPress to generate the list of page links.

