Viewing 14 replies - 1 through 14 (of 14 total)
  • Maybe this will help: Creating_Horizontal_Menus

    Thread Starter winnopeg

    (@winnopeg)

    That’s what’s currently in the theme – I’d like the menu to list all the pages automatically.

    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    Is what I use for listing pages horizontally, plus the CSS, of course.
    hmm, the code is getting cut off, the parameters for the tag are:
    sort_column=menu_order&depth=1&title_li=

    Thread Starter winnopeg

    (@winnopeg)

    Close, but still no cigar. Result : https://test.winnopeg.com

    as miklb said: plus the CSS, of course…
    Check your source code to see what classes you get when using the wp_list_pages template and style them.

    Thread Starter winnopeg

    (@winnopeg)

    I think I get what you’re going at – change the properties of li for the header? If so, I couldn’t guess how. I have a book on CSS under the Christmas Tree, but it’s just that. I don’t get to read it for a bit ??

    winnopeg, some CSS is available in the link moshu provided.

    I simply create a div, call it navmenu, and use the code I provided. Example in header.php
    <div id="navmenu">
    <ul>
    <li><a href="<?php echo get_settings('home'); ?>">Main</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    </ul></div>
    Would list your main index page, and all Pages. Then use the example CSS or one of the examples at Listamatic, adjusting for your colors, etc.

    Thread Starter winnopeg

    (@winnopeg)

    Okay, sorry for the late reply but I’ve put this in and it works fine – exept it’s not valaid XHTML. To make it valaid you need < ul > (as in the above exapmple), and that lists it vertically again. Anyone have the CSS variable I could add to correct this?

    Why do you have two ordered list: one contains “home” and the other contains the rest?

    Anywho, there are two possible CSS solutions depending on your goal.

    #navmenu ol {
    display: inline;
    }

    …Or…

    #navmenu ol li {
    float: left;
    }

    Thread Starter winnopeg

    (@winnopeg)

    Well, it got it straight but the alignment’s totally screwed and it looks like things are over lapping. Help?

    Thread Starter winnopeg

    (@winnopeg)

    Bump..

    Thread Starter winnopeg

    (@winnopeg)

    Is anyone capable of helping me?

    Thread Starter winnopeg

    (@winnopeg)

    Please? ?? I’d really like to get this cleaned up..

    Thread Starter winnopeg

    (@winnopeg)

    another bump I guess

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Here I go again’ is closed to new replies.