/* Hide when open popup */ jQuery(document).on("elementor/popup/show", (event, id, instance) => { if (id === 388) { setTimeout(function () { jQuery(".sticky-left-menu").hide(); }, 1000); } }); /* Show when close popup and not mobile */ jQuery(document).on("elementor/popup/hide", (event, id, instance) => { if (id === 388 && windowWidth >= 768) { setTimeout(function () { jQuery(".sticky-left-menu").show(); }, 1000); } if (id === 388 && windowWidth <= 767) { jQuery(".sticky-left-menu").hide(); } });