WordPress.org

Ready to get started?Download WordPress

Forums

How to replace category header navigation with pages (1 post)

  1. ppragados
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic