title: How to add class and element to <a>-tag in sub-menu of "wp_nav_menu" in WordPress?
body: <p>i want to add a class to the <code>a</code> tag of an <code>sub-menu</code> and a <code>b</code> tag inside the link.</p>
  <p>WordPress gives me this code:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;li id=&quot;menu-item-72&quot; class=&quot;menu-item menu-item-type-post_type menu-item-object-page dropdown menu-item-72&quot;&gt;&lt;a
      href=&quot;#&quot;&gt;Link&lt;/a&gt;
    &lt;ul class=&quot;dropdown-menu&quot;&gt;&lt;/ul&gt;
  </code></pre>
  <p>And i want this:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;li id=&quot;menu-item-72&quot; class=&quot;menu-item menu-item-type-post_type menu-item-object-page dropdown menu-item-72&quot;&gt; &lt;a
      href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;Link &lt;b class=&quot;caret&quot;&gt;&lt;/b&gt;&lt;/a&gt;
    &lt;ul class=&quot;dropdown-menu&quot;&gt;&lt;/ul&gt;
  </code></pre>
  <p>Does anybody know a solution for that?</p>