I'm looking to make some changes to my navigation menu, specifically hiding the home menu item unless the mobile navigation menu is toggled. Is there a way for me to target the "home" anchor title and apply the active class to it when toggled, similar to what I've done with other elements? Alternatively, could this be achieved using CSS alone? My site uses a WordPress nav menu so adding a specific class isn't an option. Thanks in advance.
$(document).ready(function() {
$('body').addClass('js');
var $menu = $('#menu'),
$logo = $('.logo'),
$menulink = $('.menu-link');
$menulink.click(function() {
$menulink.toggleClass('active');
$menu.toggleClass('active');
$logo.toggleClass('active');
return false;
});
});