Support » Themes and Templates » Display Nav Menu on all pages :: Help
Display Nav Menu on all pages :: Help
-
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"> </span></li> <?php wp_list_categories('include='.pagelines('subnav_categories').'&title_li='); ?> <li><span class="subnav_last"> </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.
- The topic ‘Display Nav Menu on all pages :: Help’ is closed to new replies.