0

用于functions.php创建 WordPress [Dropdown enabled]Twitter Bootstrap的代码

菜单: http: //pastebin.com/HCxCcBmG

中使用的代码:http header.php: //pastebin.com/7eTHTjij

以下是为下拉菜单代码生成的内容:

<ul class="dropdown-menu">
  <a href="http://localhost/site/projects/" class="dropdown-toggle" data-toggle="dropdown"></a>
  <li id="menu-item-29" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-29">
    <a href="http://localhost/site/projects/" class="dropdown-toggle" data-toggle="dropdown"></a>
    <a href="http://localhost/site/projects/site-design/">site design</a>
  </li>
  <li id="menu-item-30" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-30">
    <a href="http://localhost/site/projects/app-design/">app design</a>
  </li>
  <li id="menu-item-31" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-31">
    <a href="http://localhost/site/projects/windows/">windows</a>
  </li>
  <li id="menu-item-32" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-32">
    <a href="http://localhost/site/projects/mac/">mac</a>
  </li>
</ul>

如何删除在第一个下拉菜单链接中生成的附加锚标记/链接?像这样:

<ul class="dropdown-menu">
  <a href="http://localhost/site/projects/" class="dropdown-toggle" data-toggle="dropdown"></a>
  <li id="menu-item-29" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-29">
    <a href="http://localhost/site/projects/site-design/">site design</a>
  </li>
  <li id="menu-item-30" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-30">
    <a href="http://localhost/site/projects/app-design/">app design</a>
  </li>
  <li id="menu-item-31" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-31">
    <a href="http://localhost/site/projects/windows/">windows</a>
  </li>
  <li id="menu-item-32" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-32">
    <a href="http://localhost/site/projects/mac/">mac</a>
  </li>
</ul>
4

0 回答 0