我使用的是我们的wordpress代码:
<?php
echo wp_nav_menu(array(
'menu' => '',
'container' => 'div',
'container_class' => '', //container class
'container_id' => '', // it is our container id
'menu_class' => 'nav navbar-nav navbar-right', //our menu classs
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => '',
'theme_location' => ''
));?>
这是HTML代码:
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">TOUR PACKAGES
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">DESTINATION
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
</ul>
</li>
<li><a href="#">OUR CABS</a></li>
<li><a href="#">CONTACT US</a></li>
<li class="contact-btn"><a class="btn-lg" href="#">HONEYMOON PACKAGE<span class="sprite pack-btn"></span></a></li>