Support » Fixing WordPress » adding pages to header menu

  • rozilla


    i’m using the “Clean [Bluehaze] 0.6” theme and it’s got ‘Home’, ‘About’ and ‘Site Admin’ in the header menu. I would like to add three more tabs to that.

    ‘Contact’: this should be a contact form that is visible within the blog itself

    ‘Ads’: this should link to a page outside the blog

    ‘Forum’: another tab that links to a forum outside the blog

    how do i do this? this is my first time with wordpress, and blogging in general. and i got no php skills. so break it down nice and kindergarten for me, please. but i do know my way around stylesheets and xhtml.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dgold


    find which template has the existing menu in it.

    It’s probably header.php, could be index.php, in your theme’s folder (via FTP). Alternately you can edit it in the WP Admin > Presentation > Theme Editor, and when you’re there just peek at the various templates listed.

    Once you find the code that’s giving the Home and 2 other tabs, it’ll be easy to duplicate to add your own links. That part will mostly just be some recognizable HTML, wrapped in some CSS, near some PHP – nothin’ too hairy.

    I know this is way late as a reply, but I just had the same problem with my page.

    Go to WP Admin > Presentation > Theme Editor > header.php

    In the body section you will see a \<div id=”menu”>\ tag followed by a list tag.
    This will include a code that writes the Home link to the header, followed by a piece of code that dynamically adds links to this header.

    <li <?php if(is_home()){echo ‘class=”current_page_item”‘;}?>>/” title=”Home”>Home
    <?php wp_list_pages(‘title_li=&depth=1&sort_column=menu_order&include=4,30,53’);?>

    The 4, 30 and 53 are the pages numbers that I added, yours will depend on which pages you want to create links to.
    They will be added in an alphabetically-ordered list.

    Hope this helps

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding pages to header menu’ is closed to new replies.