我面临一个问题。我想将html转换为wordpress菜单。它的多级菜单。但我不想更改和class/id/any div。
是否可以从当前结构创建菜单?
结构如下:
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="http://abcnews.com" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Todays News
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="#">USA</a>
<a class="dropdown-item" href="#">International</a>
<a class="dropdown-item" href="#">Economics</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">National</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Comments</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Sports</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Entertainment</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Cartoon</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Science</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Lifestyle</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Education</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Culture</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">We\'re</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Others</a>
</li>
</ul>
</div>