原

Change The Header Navigation Links To Display Your Pages

by Mark on Oct.14, 2007, under 如何|How To

If you want to change the standard Cutline header navigation links (Front Page, Archives, About) in to a horizontal list of your pages, replace the line 35 - 36 in header.php

<li><a <?php if (is_archive() || is_page(’archives’)) echo(’class=”current” ‘); ?>href=”<?php bloginfo(’url’); ?>/archives/”>archives</a></li>


<li><a <?php if (is_page(’about’)) echo(’class=”current” ‘); ?>href=”<?php bloginfo(’url’); ?>/about/”>about</a></li>

with

<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>

No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!