Ok, just switched to a new theme for a PHPbay site of mine and have 2 problems:
1. My nav automatically ads a # to the link.
Go to Fender Blues Junior amps - The unofficial site of Blues Jr. amplifiers and roll over any one of the top nav items. You will see in the bottom of the browser that the link is good. But then click the link and look in your address bar. it ads a # and doesn't go to the page.
For example if you click "buy" you will get:
Fender Blues Junior amps - The unofficial site of Blues Jr. amplifiers
here is the code i have for the top nave:
question 2:
How can i get a page to only show sub pages of that page.
So if your on Buy a Fender Blues Junior amplifier | Fender Blues Junior Amps and you see that huuuge list of pages in the right, i only want the user to see the sub pages of the "Blues Junior" page, so just "specs" and "owners manual"
Right now the code is thise:
thanks!
1. My nav automatically ads a # to the link.
Go to Fender Blues Junior amps - The unofficial site of Blues Jr. amplifiers and roll over any one of the top nav items. You will see in the bottom of the browser that the link is good. But then click the link and look in your address bar. it ads a # and doesn't go to the page.
For example if you click "buy" you will get:
Fender Blues Junior amps - The unofficial site of Blues Jr. amplifiers
here is the code i have for the top nave:
Code:
<ul id="nav">
<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_option('home'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
question 2:
How can i get a page to only show sub pages of that page.
So if your on Buy a Fender Blues Junior amplifier | Fender Blues Junior Amps and you see that huuuge list of pages in the right, i only want the user to see the sub pages of the "Blues Junior" page, so just "specs" and "owners manual"
Right now the code is thise:
Code:
<h3 class="sec-title">Navigation</h3>
<?php if (function_exists("wp_pages_nav")){
wp_pages_nav("show_all_parents=1&show_root=0");
}else{
echo "<ul>";
wp_list_pages("title_li=&sort_column=menu_order&depth=5");
echo "</ul>";
}
endif;
thanks!