好的,有人可以告诉我为什么这个网站上的主要4个菜单项不会点击,手指出现,它们就像一个链接但没有任何东西,从不带你到任何地方,所有的下拉工作都很好,虽然它们是标准的wordpress菜单,但它是
代码是:
<nav id="main-nav">
<?php $i = 0; while($i < 4) { $i++;
if($i == 1) { $letter = "a"; } else if($i == 2) { $letter = "b"; } else if($i == 3) { $letter = "c"; } else if($i == 4) { $letter = "d"; } ?>
<nav class="dropdown dropdown-<?php echo $letter; ?>">
<?php if(function_exists('wp_nav_menu')) { wp_nav_menu( array( 'container_class' => 'menu', 'theme_location' => 'menu-'.$letter.'-left' ) ); } ?>
<?php if(function_exists('wp_nav_menu')) { wp_nav_menu( array( 'container_class' => 'menu', 'theme_location' => 'menu-'.$letter.'-right' ) ); } ?>
</nav><!-- end dropdown -->
<a href="<?php echo get_permalink($theme_options['main_nav_'.$i.'_page']); ?>" id="menu-<?php echo $theme_options['main_nav_'.$i.'_page']; ?>" class="menu-link menu-link-<?php echo $letter; ?><?php if(array_pop(get_post_ancestors($post->ID)) == $theme_options['main_nav_'.$i.'_page']) { ?> menu-link-active<?php } ?>">
<span class="icon"></span>
<h3 class="title"><?php echo $theme_options['main_nav_'.$i.'_heading']; ?></h3>
<span class="tagline"><?php echo $theme_options['main_nav_'.$i.'_tagline']; ?></span>
</a>
<?php } ?>
</nav><!-- end main nav -->