• Okay. So What I want the header menu to is to display all my pages i have made (and ones i add in the future). I.E. Home Page1 Page2
    Not just “Home About”

    I’ve figured out how to get the code to show all the pages so far… but then home shows up at the top and pushes all the rest down to the bottom. Making my menu wider then i wanted it.

    <div id="menu">
            <!-- <p id="sitemap"><a href="?sitemap">Sitemap</a>
     -->
            <ul class="pagelinks2">
            <a href="<?php bloginfo('url'); ?>" title="Home">Home.</a>
            <?php wp_list_pages('title_li=&depth=1'); ?>
    
            </ul>
    </div>

    Keep in mind i dont understand this kind of coding that well… just slapped some things together and got this far now i’m stumped haha.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Placing the home link inside a <li> would do the trick? Is your menu horizontal or vertical?

    Thread Starter ev-man

    (@ev-man)

    horizontal.
    https://www.evanhodsonphoto.com

    take a look if you like.

    Hi,

    Not sure if this helps as I’m even more newbie than you, but I had a play with your CSS using Firebug.

    Removing the overflow line from the following seemed to fix the menu (i.e. it showed home, About Me, Contact Me, Gallery).

    #menu ul {
    border:medium none;
    height:35px;
    margin:0;
    overflow:hidden;
    padding:0;
    width:250px;
    }

    Hope that helps.

    Quick update… I should have said to remove the width line, not the overflow.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘header menu coding question.’ is closed to new replies.