当我在手机/iphone上使用它时,引导折叠导航在我的手机中的wordpress主题中不起作用,菜单隐藏在使用的图像图标后面,但是当我单击此图像时,它不会折叠并且不显示所有列表项。
<div class="container">
<div style="position: static;" class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a data-target="navbar-inverse-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a href="#" class="brand"><img src="<?php echo get_template_directory_uri();?>/images/spa_logo.png" alt="spasalon" /></a>
<div class="nav-collapse collapse navbar-inverse-collapse">
<?php
if ( has_nav_menu( 'header-menu' ) ):
wp_nav_menu( array( 'menu' => 'header-menu',
'theme_location' => 'header-menu',
'depth' => 3,
'container' => false,
'menu_class' => 'nav',
'menu_id'=>'a',
'show_home'=>'HOME',
'fallback_cb' => 'wp_page_menu',
'walker' => new twitter_bootstrap_nav_walker()
)
);
endif; ?>
</div><!-- /.nav-collapse -->
</div>
</div><!-- /navbar-inner -->
</div>