Edit file File name : primary-menu-no-toggle.min.js Content :!function(){var a=screen.width;if((document.querySelectorAll(".ast-no-toggle-menu-enable")||0).length){for(var e=document.querySelectorAll(".main-header-bar-navigation"),t=document.querySelectorAll(".main-header-bar-navigation"),n=0;n<t.length;n++){e[n].querySelectorAll(".main-header-menu .menu-item");var l=e[n].querySelectorAll(".main-header-menu .ast-menu-toggle");if(0<l.length)for(var r=0;r<l.length;r++)l[r].addEventListener("click",AstraToggleSubMenu,!1);o(l=e[n].querySelectorAll(".main-header-menu > .menu-item > .ast-menu-toggle"))}window.addEventListener("resize",function(){if(a!=screen.width&&(a=screen.width,"BODY"===document.activeElement.tagName)){for(var e=document.querySelectorAll(".main-header-bar .sub-menu"),t=0;t<e.length;t++)e[t].removeAttribute("style");for(e=document.querySelectorAll(".main-header-bar li"),t=0;t<e.length;t++)e[t].classList.remove("ast-submenu-expanded");for(var n=document.querySelectorAll(".main-header-bar-navigation"),l=document.querySelectorAll(".main-header-bar-navigation"),r=0;r<l.length;r++){var i=n[r].querySelectorAll(".main-header-menu > .menu-item > .ast-menu-toggle");if(0!==i.length){for(r=0;r<i.length;r++)i[r].nextElementSibling.removeAttribute("data-set");o(i)}}}})}function o(e){if(parseInt(window.innerWidth)<=480)for(var t=0;t<e.length;t++)e[t].addEventListener("click",function(e){e.preventDefault();var e=this.nextElementSibling.getBoundingClientRect();null===this.nextElementSibling.getAttribute("data-set")&&(this.nextElementSibling.style.left="-"+parseFloat(e.left)+"px",e=document.documentElement.clientWidth,this.nextElementSibling.style.width=e+"px",this.nextElementSibling.setAttribute("data-set",!0))})}}(); Save