php - how do I remove additional anchor tag in a bootstrapped WordPress dropdown menu? -
code used in functions.php
create wordpress [dropdown enabled]
twitter bootstrap
menu: http://pastebin.com/hcxccbmg
code used in header.php
: http://pastebin.com/7ethtjij
here's gets generated dropdown menu code:
<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>
how remove additional anchor tag/link genereated in first dropdown menu link? this:
<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>
Comments
Post a Comment