Tagged: x
-
AuthorPosts
-
February 4, 2017 at 3:26 am #1357759
markusp80ParticipantHi!
I have installed the UberMenu addon. Works great!
Is there a way to make the UberMenu top nav menu sticky on mobile?
I found this in another forum thread:
.x-navbar-fixed-top {position: fixed; z-index: 1030;}But I guess it doesn’t work when I use UberMenu?
/Markus
February 4, 2017 at 3:27 am #1357760
markusp80ParticipantBtw, the site I want to do it on is http://www.markusp.se
February 4, 2017 at 4:22 am #1357773
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
@media (max-width: 979px){ .x-navbar-fixed-top, .x-navbar-fixed-left, .x-navbar-fixed-right { position: fixed; } }Hope that helps.
February 4, 2017 at 4:32 am #1357780
markusp80ParticipantHmm, it’s a bit inconsistent.
It works on this test page: http://www.markusp.se/portfolio-test/
But not on my main page http://www.markusp.se
Any idea why?
February 4, 2017 at 5:15 am #1357801
Nabeel AModeratorHi again,
Please replace the previous code with this one:
@media screen and (max-width: 979px) { .x-navbar-fixed-top, .x-navbar-fixed-left, .x-navbar-fixed-right { position: fixed !important; } }After adding the code please purge all the site’s cache as you’re also using a cache plugin which could display a cached page even after adding the code.
Let us know how this goes!
February 4, 2017 at 1:59 pm #1358039
markusp80ParticipantNope, still does not work. I think I know why.
This page: http://www.markusp.se/portfolio-test/ is built in Cornerstone. The rest of the website is built in visual composer. Does that explain it? Having plans of rebuilding it in cornerstone, just haven’t had the time yet.
February 4, 2017 at 11:17 pm #1358330
ChristopherModeratorHi there,
You’re using cache plugin, please clear cache and check again.
Thanks.
February 5, 2017 at 3:20 am #1358437
markusp80ParticipantNope, sorry, no difference.
I have cleared all caches. The sticky menu for mobile only works on this page http://www.markusp.se/portfolio-test/ not the rest of the website. I would say it has to do with that this page only is built in Cornerstone.
February 5, 2017 at 5:27 am #1358494
ThaiModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link login to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
February 5, 2017 at 5:59 am #1358509
markusp80ParticipantThis reply has been marked as private.February 5, 2017 at 6:49 am #1358539
ThaiModeratorHey There,
I’ve added the custom CSS under Customizer > Custom > Global CSS.
The navbar is fixed on both mobile & desktop.
Regards!
February 5, 2017 at 3:00 pm #1358833
markusp80ParticipantThanks, now it seems to work : )
February 5, 2017 at 5:08 pm #1358903
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1357759 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
