我在哪裏犯了一個錯誤? Wordpress中的導航菜單與HTML Bootstrap導航菜單看起來不同。如何在WordPress中註冊Bootstrap菜單?
我用這個,並沒有得到與HTML文件相同的結果。
<?php
wp_nav_menu(array(
'theme_location' => 'primary',
'container' => 'nav',
'container_class' => 'navbar-collapse collapse',
'menu_class' => 'nav navbar-nav'
));
?>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="services.html">Services</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Products <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="steelandfire.html">Steel and fire doors</a></li>
<li><a href="stainless.html">Stainless steel doors</a></li>
<li><a href="acoustic.html">Acoustic doors</a></li>
<li><a href="sliding.html">Sliding doors</a></li>
<li><a href="revolving.html">Revolving doors</a></li>
<li><a href="roller.html">Roller shutters</a></li>
<li><a href="curtains.html">Fire curtains</a></li>
<li><a href="gates.html">Gates</a></li>
<li><a href="rapid.html">Rapid doors</a></li>
<li><a href="access.html">Access control</a></li>
<li><a href="accessories.html">Accessories</a></li>
<li class="divider"></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Industry <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Medical</a></li>
<li><a href="#">Office and Residential</a></li>
<li><a href="#">Industrial</a></li>
<li><a href="#">Education</a></li>
<li><a href="#">Retail</a></li>
<li><a href="#">Shopping Mall</a></li>
<li><a href="#">Transportation</a></li>
<li><a href="#">Warehouse and Logistics</a></li>
<li class="divider"></li>
</ul>
</li>
<li><a href="projects.html">Projects</a></li>
<li><a href="contact.html">Contacts</a></li>
</ul>
</div>