Hi everyone,
I’m using Glide Apps with bottom navigation (the mobile tab bar). I found the CSS below (thank you @thinhDinh), which successfully hides the tab bar — but it hides it on every screen:
div[class*="mobile-tab-bar"] {
display: none;
}
What I’m trying to do is hide the tab bar only on certain screens (e.g., Detail or Profile), while keeping it visible on others (e.g., Home, Missions).
What I’ve tried:
-
Page “markers” +
:has()
to scope the rule only when a marker exists on the screen:/* Example attempts (in global CSS) */ html:has(.hide-tabs) div[class*="mobile-tab-bar"] { display: none !important; } #page-root:has(.hide-tabs) div[class*="mobile-tab-bar"] { display: none !important; }
With a small Rich Text component on target screens:
<div class="hide-tabs" style="display:none"></div>
This didn’t affect the tab bar (I suspect the bar lives in the app “shell,” outside the screen’s DOM subtree).
-
Sibling combinator from a marker component:
.hide-tabs ~ div[class*="mobile-tab-bar"] { display: none !important; }
No effect (likely not a sibling in the same container).
-
Broader selectors like
[class*="tab-bar"]
ornav[role="tablist"]
— this risks breaking the app shell (I even saw a white screen), so I rolled that back.
Question(s):
-
Is there a supported way to hide the mobile tab bar only on specific screens (CSS or built-in setting)?
-
If CSS is the way, what’s the reliable selector for the tab bar element in Glide Apps, and is there a recommended ancestor I can target that also “sees” screen content (so
:has(.hide-tabs)
can work)? -
Alternatively, is there a best-practice approach (e.g., different layouts/screens without the tab bar, or a built-in visibility condition I’m missing)?
Environment:
-
Glide Apps (bottom navigation enabled)
-
Tested on iOS Safari and desktop Chrome
-
Custom CSS added at the app level (global), not just inside a page component
I can share a preview link via DM if it helps. Thanks a lot for any guidance or examples!