Styling my ‘wp_list_pages’ output ?
-
Hi,
I have to style my list of pages output in a certain way.
Currently I’m using the default: <?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?>
However, the output is not great. I get this:
<ul id="navlist"> <li class="pagenav"><h2>Pages</h2> <ul><li class="page_item page-item-2"><a href="/?page_id=2" title="About">About</a> </ul> <ul> <li class="page_item page-item-3"><a href="/?page_id=3" title="Our Team">Our Team</a> </ul> <li class="page_item page-item-6"><a href="/?page_id=6" title="Contact">Contact</a>
When actually, I’d love to get :
<ul id="navlist"> <li id="home"><a href="/">Home</a></li> <li><a class="fly" href="/?page_id=2">About Us<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="/?page_id=3">Our Team</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li id="contact"><a href="/?page_id=6">Contact</a></li> </ul>
It’s a little complex, but it’s just to get a bit of fancy CSS menu working ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Styling my ‘wp_list_pages’ output ?’ is closed to new replies.