title: Change mobile nav open action by clicking on link not icon
body: <p>I have a problem I've been trying to work out for over a week. I have been editing a premade template for its header and footer elements. I used Bootstrap 3 for the rest because the template was Bootstrap 3. I've since found out that Bootstrap 3 did not support sub menus on the mobile nav. </p>
  
  <p>The problem is with the mobile nav. The links with sub menus can only be opened by clicking on an icon to the right of the link (LINK icon). Clicking on the link itself does not open the sub menu. The icon is so ugly (even when I changed out fontello for font awesome) and shifts the link off centre. Plus it's such a small area to click on. I tested it with a few friends and they tried clicking on the links before finding that they had to click on the icon.</p>
  
  <p>I've tried editing the JS code but, because I'm no expert, that did not work. I even tried using display:none for hide/unhide on one of the li elements using media queries; but that only works for one link. </p>
  
  <p>The mobile nav is vertical and centred. </p>
  
  <p>Below is the JS code.</p>
  
  <pre><code>var $menu = $('.nav-menu', '#primary-navigation');
  
  // add classes
  $menu.find('li').each(function() {
      if($(this).children('ul').length) {
          $(this).addClass('has-submenu');
          $(this).find('&gt;a').after('&lt;span class="submenu-toggle"&gt;&lt;/span&gt;');
      }
  });
  
  var $submenuTrigger = $('.has-submenu &gt; .submenu-toggle');
  // submenu link click event
  $submenuTrigger.on( "click", function() {
      $(this).parent().toggleClass('active');
      $(this).siblings('ul').toggleClass('active');
  });
  </code></pre>
  
  <p>And here is the html</p>
  
  <pre><code>&lt;nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation"&gt; 
  
  &lt;a class="menu-toggle"&gt;&lt;span class="lines"&gt;&lt;/span&gt;&lt;/a&gt;
  
      &lt;div class="nav-menu"&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#" class="selected"&gt;Explore&lt;/a&gt;
                  &lt;ul&gt;
                      &lt;li&gt;&lt;a href="ex_languages.html"&gt;Languages&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="ex_gallery.html"&gt;Gallery&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="ex_glossary.html"&gt;Glossary&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;
                  &lt;ul&gt;
                      &lt;li&gt;&lt;a href="ab_about.html"&gt;About&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="ab_faq.html"&gt;Questions &amp;amp; Answers&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;                            
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="blog/index.php"&gt;Blog&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is the css</p>
  
  <pre><code>.submenu-toggle:before {
      font-family: "Font Awesome 5 Free";
      content: "\f0d7";
      color:#fff; 
      font-size: 15px; 
      font-weight: 900; 
      display: inline-block; 
      width: 26px; 
      line-height: 24px; 
      text-align: center;
      margin-left: -8px; 
      margin-bottom: 8px;
      cursor:pointer;
  }
  .active &gt; .submenu-toggle:before {
      font-family: "Font Awesome 5 Free";
      content: "\f0d8";
  }
  </code></pre>
  
  <p>If anyone can help, that would be great. It's okay if both the link and icon are clickable, but having the link clickable, or having the click area of the icon extending over the link, is the most important.</p>
  
  <p>Thanks :)</p>