How to replace category header navigation with pages
-
Hey guys,
Hoping someone can help, I am trying to replace the category navigation with a pages header navigation. I know how to add the list_pages but I want the links to be padded with the same style as the home link. Any ideas?
<div id="padd-categories" class="padd-box padd-box-categories"> <h2>Categories</h2> <div class="padd-interior"> <ul> <?php add_filter('wp_list_categories','padd_theme_alter_links'); ?> <li<?php if (is_home()) { echo ' class="current-cat"'; } ?>><a href="<?php echo get_option('home'); ?>"><span class="l"><span class="r"><span class="c">Home</a></a></a></li> <li <?php wp_list_pages('title_li=&depth=1'); ?></li> <?php wp_list_pages('sort_column=name&optioncount=0&hierarchical=0'); ?> <?php remove_filter('wp_list_pages','padd_theme_alter_links'); ?> </ul> </div>
The site is here
- The topic ‘How to replace category header navigation with pages’ is closed to new replies.