WordPress.org

Ready to get started?Download WordPress

Forums

Display Nav Menu on all pages :: Help (1 post)

  1. sach6606
    Member
    Posted 3 years ago #

    I am using ecopro theme , here is the code in the subhead.php

    <?php if(!pagelines('hide_sub_header')  && !is_search() && !is_404() ):?>
    	<?php if($post->post_parent || wp_list_pages("title_li=&child_of=".$post->ID."&echo=0")) $children = true;?>
    	<?php if($children):?>
    		<div id="sub_head" class="fix">
    			<div class="content">
    			<?php require(THEME_LIB.'/_sub_nav.php');?>
    			</div>
    		</div>
    	<?php elseif((is_home() || is_category()) && pagelines('subnav_categories') && wp_list_categories('include='.pagelines('subnav_categories').'&title_li=&echo=0') != "<li>No categories</li>"):?>
    
    	<div id="sub_head" class="fix">
    		<div class="content">
    			<ul id="subnav" class="fix">
    				<li><span class="subnav_first">&nbsp;</span></li>
    				<?php wp_list_categories('include='.pagelines('subnav_categories').'&title_li='); ?>
    				<li><span class="subnav_last">&nbsp;</span></li>
    
    			</ul>
    		</div>
    	</div>
    
    	<?php endif;?>
    
    <?php endif;?>

    i want to use nav menu on all the pages even on single post and search results.

Topic Closed

This topic has been closed to new replies.

About this Topic