• This jquery script works great on my none wordpress site: angelaschmidtdesign.com but fails to toggle the active in my wordpress site: forms.angelaschmidtdesign.com

    Thoughts on what is going on? Thanks!

    <script>
    jQuery( document ).ready( function( $ ) {
    
    	 $('nav#menu > ul > li').addClass('has-submenu');
    
    		$('body').addClass('js');
    		  var $menu = $('#menu'),
    		  	  $menulink = $('.menu-link'),
    		  	  $menuTrigger = $('.has-submenu > a');
    
    		$menulink.click(function(e) {
    			e.preventDefault();
    			$menulink.toggleClass('active');
    			$menu.toggleClass('active');
    		});
    
    		$menuTrigger.click(function(e) {
    			e.preventDefault();
    			var $this = $(this);
    			$this.toggleClass('active').next('ul').toggleClass('active');
    		});
    
    });
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Responsive toggleClass active Menu Nav — toggle not working’ is closed to new replies.