Troubleshooting Common Menu and Sidebar Issues in the Inspiro Theme
Content
Many users of the Inspiro theme encounter challenges with their website's navigation, particularly with menus and the sidebar on mobile and desktop views. These issues can range from menus not displaying correctly to problems with anchor links and unwanted horizontal scroll bars. Based on community support threads, here are the most common problems and their solutions.
1. Mobile Menu Items Not Displaying or Disappearing
The Problem: Header links or the entire menu may not be visible on mobile devices, or the current menu item might appear invisible (black on black) in the sidebar.
Why It Happens: This is typically a CSS styling issue where the theme's default styles for mobile viewports are either being overridden or are missing necessary declarations for certain elements.
The Solution: Add custom CSS to force the display of these elements and ensure proper color contrast.
@media screen and (max-width: 40em) {
.header_social {
display: block;
}
}
@media screen and (max-width: 64em) {
.side-nav .navbar-nav>li.current-menu-item>a,
.side-nav .navbar-nav>li.current-menu-parent>a,
.side-nav .navbar-nav>li.current_page_item>a {
color: #fff !important;
opacity: .5;
}
}
Add this code in the WordPress Customizer under Appearance → Customize → Additional CSS.
2. Anchor Links Not Working or Sidebar Not Closing on Mobile
The Problem: On one-page sites, clicking an anchor link in the mobile sidebar menu causes the page to scroll correctly in the background, but the sidebar remains open. When closed, the page often jumps back to the top.
Why It Happens: The theme's default JavaScript behavior for the mobile sidebar can sometimes interfere with the smooth functioning of anchor links.
The Solution: This often requires custom JavaScript to manually close the sidebar after a link is clicked. The Inspiro team has acknowledged this is a known issue for a future update. A common jQuery workaround is:
jQuery('#silk-menu a').click(function() {
jQuery('.navbar-toggle').click();
});
Ensure your anchor link structure is consistent (using #work not ?#work) for all menu items to avoid highlighting issues.
3. Unwanted Horizontal Scroll Bar on Full-Width Layouts
The Problem: When setting a group block to "full width," a horizontal scroll bar appears, revealing a white space or stripe on the side of the page.
Why It Happens: This is usually caused by a page builder or content element that is slightly wider than the viewport, often due to alignment settings or margins.
The Solution: Try adjusting the alignment settings for your groups or sections within your page builder. If the issue persists, inspect the page with your browser's developer tools to identify the specific element causing the overflow.
4. Drop-Down Menu Cut Off or Not Scrollable
The Problem: Large drop-down menus on desktop are cut off, and users cannot scroll to see all the items.
Why It Happens: The menu container has a fixed height with its overflow property set to hidden.
The Solution: The following CSS will make the menu scrollable and set a maximum height.
@media (min-width: 64.0625em) {
.navbar-nav ul {
overflow-y: scroll;
max-height: 80vh;
}
}
5. Hiding the Hamburger Menu on Desktop
The Problem: Users may want to hide the hamburger icon and sidebar navigation on desktop views entirely.
Why It Happens: The theme displays this icon by default on all screen sizes unless specifically hidden with CSS.
The Solution: Use a media query to target and hide the hamburger button on larger screens.
@media screen and (min-width: 782px){
.inspiro--with-page-nav .navbar-toggle {
display: none;
}
}
General Troubleshooting Tips
- Clear Caches: After adding new CSS, always clear your browser cache and any caching plugins on your site to see the changes.
- Check for Conflicts: If CSS solutions don't work, there may be a conflict with other custom code or plugins. Try temporarily disabling other plugins to test.
- Compare with Demo: Check if the issue also exists on the official Inspiro demo site to determine if it's a bug with the theme or specific to your installation.
For more complex modifications, such as significantly altering the mobile menu structure or adding text like "Menu" next to the hamburger icon, custom theme file edits are required, which are beyond the scope of standard support.
Related Support Threads Support
-
Remove burger menuhttps://wordpress.org/support/topic/remove-burger-menu/
-
Anchor links in Menu don’t work in Mobilehttps://wordpress.org/support/topic/anchor-links-in-menu-dont-work-in-mobile/
-
Too long subtitle widthhttps://wordpress.org/support/topic/too-long-subtitle-width/
-
menu mobilehttps://wordpress.org/support/topic/menu-mobile-10/
-
Nav menu on ,obile versionhttps://wordpress.org/support/topic/nav-menu-on-obile-version/
-
Mobile menu open when page loadshttps://wordpress.org/support/topic/mobile-menu-open-when-page-loads/
-
Horizontal scroll bar appears when groups are set to full widthhttps://wordpress.org/support/topic/horizontal-scroll-bar-appears-when-groups-are-set-to-full-width/
-
Mobile version menu moves to left with autoresizehttps://wordpress.org/support/topic/mobile-version-menu-moves-to-left-with-autoresize/
-
Menu Drop Downhttps://wordpress.org/support/topic/menu-drop-down-8/
-
Menu Disappears on Mobile and Tablethttps://wordpress.org/support/topic/menu-disappears-on-mobile-and-tablet/
-
iPad not showing Title, Tagline or Menu.https://wordpress.org/support/topic/ipad-not-showing-title-tagline-or-menu/
-
Auto-hide sidebar when item is clickedhttps://wordpress.org/support/topic/auto-hide-sidebar-when-item-is-clicked/
-
Activate full-screen mode on all pageshttps://wordpress.org/support/topic/activate-full-screen-mode-on-all-pages/
-
Wrong menu item is highlightedhttps://wordpress.org/support/topic/wrong-menu-item-is-highlighted/
-
Search magnifying glass missinghttps://wordpress.org/support/topic/search-magnifying-glass-missing/
-
Remove search function and top menuhttps://wordpress.org/support/topic/remove-search-function-and-top-menu/
-
Menu on header isnt centeredhttps://wordpress.org/support/topic/menu-on-header-isnt-centered/
-
Search does not work :(https://wordpress.org/support/topic/search-does-not-work-16/
-
Is is possible to many the options in the meny bigger?https://wordpress.org/support/topic/is-is-possible-to-many-the-options-in-the-meny-bigger/
-
Close side-nav on mobile on click to anchor linkhttps://wordpress.org/support/topic/close-side-nav-on-mobile-on-click-to-anchor-link/
-
Header links don’t display on mobilehttps://wordpress.org/support/topic/header-links-dont-display-on-mobile/
-
anchor links in burger menuhttps://wordpress.org/support/topic/anchor-links-in-burger-menu/
-
Hide hamburger/sidebar on desktophttps://wordpress.org/support/topic/hide-hamburger-sidebar-on-desktop/
-
Header Show at All Pageshttps://wordpress.org/support/topic/header-show-at-all-pages/
-
Footer Widgets disapearedhttps://wordpress.org/support/topic/footer-widgets-disapeared/
-
Hyperlinks are hidden on my side menuhttps://wordpress.org/support/topic/hyperlinks-are-hidden-on-my-side-menu/
-
Frontpage does not display on Chromehttps://wordpress.org/support/topic/frontpage-does-not-display-on-chrome/
-
Menu Overlaps Headingshttps://wordpress.org/support/topic/menu-overlaps-headings/
-
Mobile selected menu item disappearshttps://wordpress.org/support/topic/mobile-selected-menu-item-disappears/
-
Header disappears when opening sidebarhttps://wordpress.org/support/topic/header-disappears-when-opening-sidebar/
-
Right-Hand Menu on Tablethttps://wordpress.org/support/topic/right-hand-menu-on-tablet/
-
Page sizehttps://wordpress.org/support/topic/page-size-15/
-
Submenu Arrows not collapsing on mobile deviceshttps://wordpress.org/support/topic/submenu-arrows-not-collapsing-on-mobile-devices/
-
About This Site in Drop Down Menuhttps://wordpress.org/support/topic/about-this-site-in-drop-down-menu/
-
Adding word ‘Menu’ on mobile 3 lineshttps://wordpress.org/support/topic/adding-word-menu-on-mobile-3-lines/
-
Menu Mobile disappearshttps://wordpress.org/support/topic/menu-mobile-disappears/