WordPress.org

Ready to get started?Download WordPress

Forums

How do I center my page navigation? (4 posts)

  1. blahblahbecky
    Member
    Posted 3 years ago #

    I'd like to centre the page navigation/menu options (underneath my header and above my header image) if possible, on my site: http://www.blahblahbecky.co.uk/

    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.

  2. stvwlf
    Member
    Posted 3 years ago #

    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.

  3. blahblahbecky
    Member
    Posted 3 years ago #

    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.

  4. stvwlf
    Member
    Posted 3 years ago #

    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 http://pastebin.com/ - 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.

Topic Closed

This topic has been closed to new replies.

About this Topic