Support » Fixing WordPress » How do I center my page navigation?

  • I’d like to centre the page navigation/menu options (underneath my header and above my header image) if possible, on my site:

    I’m 99% sure it’s something to do with this coding, and in particular float:left but I’m by no means confident with html/css.

    [CSS code moderated – the link to your site is enough]

    Any help much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have bigger issues than your menu not being centered. A lot of code that is supposed to be in the <head> section is in the <body> section. Most likely the <body> tag is in the wrong place in the header.php file. You are wise to clean that up first.

    Can you please be more specific about what I need to move and where to?

    As I said I don’t know what I’m doing with coding yet.

    It’s not possible to give a specific answer from looking at the code that is visible on the web.

    You are using a theme called Coraline. You need to paste the contents of your theme’s header.php file into what is called a pastebin, so I or someone can look at your actual code.

    1) First go to – leave it open in a browser tab.

    2) In another browser tab open the WordPress dashboard. Go to the Appearance section and click on Editor. In the right column find header.php and click on it. When it opens up in the editing box, copy the entire contents of the file. Paste what you copied into the pastebin you opened in step 1, and click Submit.

    You will be given a URL where the code can be accessed. Paste that URL in a reply to this forum post. I or someone will look at your code and rearrange it as it needs to be. Then you can change your theme’s header.php file to match the changed code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I center my page navigation?’ is closed to new replies.