Mobile Navigation not working - Post...

User 2796102 Photo


Registered User
66 posts

Help,

I am using a desktop down template and somehow disabled the mobile navigation from working. I am stuck.

the site is www.lmstest.net

User 2624719 Photo


Registered User
267 posts

Hi Philip
Can you find the nav menu in the inspector i see the hamburger in the site but i think you have detached the link from the navbar difficult to say what else it could be without the project file

Adrian
User 2624719 Photo


Registered User
267 posts

Hi Philip
One more tip i can give you is to look at the template that is working i think you have go camping selected as a ne project and it will give you clues as to where you need to be, if you need to copy html code it is easier than typing from scratch Good luck
Adrian
User 122279 Photo


Senior Advisor
14,457 posts
Online Now

Hi Philip,

It seems to me that your HTML element in the navbar is empty. You need to pop in this script:
<script>
document.addEventListener("DOMContentLoaded", function(event) {
$('.mobile-nav-button.neutral-right-button').click(function(e){
$('.navigation-links.neutral-right-menu').toggleClass('show-menu');
$('body').css('overflow', $('.navigation-links.neutral-right-menu').hasClass('show-menu') ? 'hidden' : 'auto');
});
});
</script>
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2796102 Photo


Registered User
66 posts

Inger,

The script worked. Thank you so much for your assistance.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.