hey i’ve never tried that code before but i’m using other code givr it a try it’s much easier:
<ul>
<li<?php if (is_home()){echo " class=\"current_page_item\"";}?>><a href="<?php bloginfo('url') ?>" title="Home">Home</a></li>
<?php wp_list_pages('title_li='); ?>
</ul>
then just style your .current_page_item
hope this helps
Thread Starter
xith
(@xith)
Thanks. I tried that out and it works for displaying the list, but styling .current_page_item still isn’t doing anything. I’m not sure if I’m encountering a problem with WP coding or just messed something up in my style sheet (I’m more familiar with CSS than with WP, but by no means an expert).
definitely its the css,
#menu ul li.current_page_item a
your structure should look something like the above. Notice that li is attached to .current_page_item
Thread Starter
xith
(@xith)
That was it. Thanks so much! I’ll remember that for next time.