Is there a way to hide the (shared) mega menu on a specific custom page?
Solved
Hide (shared) mega menu on a custom page
Best answer by Kenneth R
Hey
<script>
document.addEventListener('DOMContentLoaded', function () {
if (window.location.href === 'https://yourcommunity.com/p/yourcustompage') { // Replace with the link to your custom page
;
const interval = setInterval(function () {
const navSection = document.querySelector('.main-navigation-sitewidth');
if (navSection) {
navSection.remove();
clearInterval(interval);
}
}, 100);
}
});
</script>
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Sign up
If you ever had a profile with us, there's no need to create another one.
Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
Welcome to the Gainsight Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.