Tagged: x
-
AuthorPosts
-
March 6, 2017 at 11:19 pm #1397211
pacmanParticipantI have my main menu at the bottom of a full-page slider similar to the x theme main site.
However, this results on my sub-menus not being visible when hovering the menu items containing sub-menus. Also, on mobile devices after tapping the menu icon the menu won’t be visible unless the user has scrolled down first.
Is it possible to have the page automatically scroll down (same effect as “scroll bottom anchor”) if the mouse pointer hovers over the menu or if a user taps on the menu icon on a mobile device?
Thanks!
March 6, 2017 at 11:19 pm #1397213
pacmanParticipantThis reply has been marked as private.March 7, 2017 at 2:52 am #1397397
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
body.x-navbar-fixed-top-active .x-navbar-wrap { z-index: 99999; position: relative; } .x-navbar.x-navbar-fixed-top .desktop .x-nav > li ul { top: 50px !important; } .x-navbar .desktop .x-nav > li ul { top: -222px !important; } @media (max-width:979px){ .x-navbar { position: absolute; bottom: 0; width: 100%; } }Hope that helps.
March 7, 2017 at 12:27 pm #1398087
pacmanParticipantThanks. Works great on the home page but on other pages the menu still goes upwards and gets cut out. The same happens on mobile devices.
March 7, 2017 at 11:27 pm #1398651
ChristopherModeratorHi there,
Ok, I see. Please remove the code from customizer and put it in home page/cornerstone settings tab/custom css to apply it to home page only.
Hope it helps.
March 8, 2017 at 1:19 pm #1399485
pacmanParticipantWorks great. Thanks!
March 8, 2017 at 2:11 pm #1399549
JoaoModeratorGlad to hear it
Cheers
March 9, 2017 at 2:35 pm #1401012
pacmanParticipantHey,
I realized there is still a bit of an odd behavior on mobile devices. The menu will correctly pop upwards before scrolling down but if you scroll down while the menu is visible it will flip downwards but with a transparent background instead of white.
Also, if you scroll down just until the header bar with logo and menu button are not visible, the header bar will flip downwards with transparent background and if you hit the menu button, the background will be transparent as well.
This is in an android device in case that makes a difference.
Thanks!
March 9, 2017 at 10:42 pm #1401497
Paul RModeratorHi,
To fix it, you can add this under Custom > Edit Global CSS in the Customizer.
.x-navbar-inner { background-color: #fff; }Hope that helps.
March 9, 2017 at 11:43 pm #1401545
pacmanParticipantthanks!
March 10, 2017 at 1:20 am #1401604
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1397211 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
