Navigation Panel Overlaps Header? (Mobile)

AI-generated summary

Users reported that a recent update caused the navigation panel to overlap the header on mobile, blocking access to profile and notification links on their Discourse site YBB. The issue was also observed on Pi Hole’s Discourse eviltrout. Johani identified the cause: custom header code (based on this meta thread) was incorrectly applied to mobile views, where space is limited. He advised moving the customization to desktop-only or using supported theme components linked here. YBB confirmed resolving the issue by switching to the header-submenus solution, despite initial icon display problems. The site dnstars.vip was temporarily inaccessible during diagnosis YBB.

Hello,
In the past couple hours I believe an update was issued that has caused issues for mobile users on our site by pushing the navigation panel to overlap the header and making it so we can’t click to our profiles, notifications etc..

Anyone know why this has happened/how to fix it?

Thank you.

Is this site public? could you share a link?

Registration is closed.

https://dnstars.vip

I saw this on another discourse for Pi Hole last night. Not sure if related, at the time I assumed it was their own customization.

Yeah same issue, happening on both iOS and Android. Just removed the header code for now until something can be done. Any ideas?

Maybe @Johani can advise.

Could you share the code being used? It’s hard to diagnose this by sight.

I think I know what’s going on here because I came across this before.

Your site is not loading for me now, but when I looked yesterday I noticed that the menu uses the same class names used here:

https://meta.discourse.org/t/mobile-formatting-just-broke/106048

The menu on https://discourse.pi-hole.net/ uses very, very similar styles - although the classes are different. Essentially all of these sites are using some variation of

https://meta.discourse.org/t/best-way-to-customize-the-header/13368/50?u=johani

on both desktop and mobile, which I believe is not the intended use for that customization. I think it’s meant for desktop only since mobile has no space for menus in that area.

I’m not really sure how this ever worked on your site in the mobile view.

You have a few of options:

  1. modify the code to make it responsive (not really worth it as you’d only be able to show one link tops due to lack of space)

  2. move the customization to desktop tabs in your theme.

  3. use one of the supported theme components I mentioned here

https://meta.discourse.org/t/mobile-formatting-just-broke/106048/7?u=johani

Thanks mate, I’m working on this currently Header Submenus - #14 - however some of the icons don’t appear?

Got it all sussed. thanks again.

As Johani has replied below, we were using the same as those other pages. I’ve gone for this now Header Submenus - #14.

Thanks