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=
Close, but still no cigar. Result : http://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.
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.
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;
}
Well, it got it straight but the alignment’s totally screwed and it looks like things are over lapping. Help?
Is anyone capable of helping me?
Please? π₯ I’d really like to get this cleaned up..