Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thanks for this. It took me a minute to figure out what you were saying so I decided to share some code to help others. Not sure if this is the perfect way to do this but it works.

    header.php

    <?php if ( is_author( ) ) { ?>
         <div id="navigation">
         	<div id="author-page">
    			 <ul>
    				<?php
                     $current_page = $post->post_parent;
                     $top_level = wp_page_menu('show_home=1&title_li=&depth=1&sort_column=menu_order&echo=0');
                     // Put it all together
                     $menu .= $top_level;
                     print $menu;
                    ?>
    			</ul>
    	 	</div>
         </div>
         <? } else { ?>
         <div id="navigation">
    			<ul>
    				<?php
                     $current_page = $post->post_parent;
                     $top_level = wp_page_menu('show_home=1&title_li=&depth=1&sort_column=menu_order&echo=0');
                     // Put it all together
                     $menu .= $top_level;
                     print $menu;
                    ?>
    			</ul>
    	 	</div>
         <?php } ?>

    CSS

    #navigation #author-page li.page-item-6 {
    ...
    }

    Thanks again!

Viewing 1 replies (of 1 total)