Tagged: x
-
AuthorPosts
-
March 28, 2016 at 9:04 am #855104
Hey Guys,
I’m looking for a Solution to make a sticky Submenu.This site shows perfectly how I mean it.
https://www.nextbit.com/pages/meet-robinWhen I scroll, the Navmenu fades out and the submenu become sticky.
Is there a Solution for this?
Thank you
regards
KarliMarch 28, 2016 at 11:00 am #855235Hi Karli,
Thanks for writing in! You can set Fixed Top Navbar from Customize > Header > Navbar Position
Hope this helps.
Cheers!
March 28, 2016 at 11:21 am #855255Hey,
thanks for your response. I know that I can make my Navmenu fixed. I’m looking for a fixed SUBMENU (like in the link)When I scroll, the Navmenu fades out and the submenu become sticky.
Thank you
regards
KarliMarch 28, 2016 at 12:57 pm #855396Hey Karli,
That is technically possible. However, that would fall beyond the scope of our support since it would require custom development.
Thank you for understanding.
March 28, 2016 at 3:40 pm #855583ok
maybe a workaround? 🙂
Is it possible to make a Section in Cornerstone fixed? It could solve my problem when the first Section of every page is fixed.Thank You
regards
KarliMarch 28, 2016 at 10:09 pm #856011Hi Karli,
Thanks for updating. You need to create the submenu within a section and let’s give it an ID on the ID field. Let’s say the ID is custom-submenu.
Then you can add this under Custom > JavaScript in the Customizer.
jQuery(document).ready(function($) { $(window).scroll(function() { var scrollPos = $(window).scrollTop(), custom-submenu = $('#custom-submenu'); if (scrollPos > 80) { custom-submenu.addClass('fixed-submenu'); } else { custom-submenu.removeClass('fixed-submenu'); } }); });
Then add this under Custom > CSS in the Customizer.
.fixed-submenu { position: fixed; top: 0; left: 0; right: 0; }
Hope this makes sense. If you still have question, first do the suggested workarounds and provide your URL.
Cheers!
March 29, 2016 at 8:03 am #856763This reply has been marked as private.March 29, 2016 at 10:54 am #857042Hi Karli,
Thanks for updating. Kindly follow the previous reply carefully. We asked for your URL because without checking URL we can’t provide a tailored code for your setup.
Hope this makes sense.
Cheers!
March 29, 2016 at 12:59 pm #857247This reply has been marked as private.March 29, 2016 at 9:51 pm #857907Hello Karli,
Please update this CSS:
.fixed-submenu { position: fixed; top: 0; left: 0; right: 0; }
To this:
.fixed-submenu { position: fixed; left: 0; right: 0; z-index: 99999; }
You may want to add background color with a little opacity for the section to standout against the content behind it.
Hope this helps.
March 30, 2016 at 2:17 am #858273Hey again,
it works like charm. THANK YOU very much for your support. This is just one more thing why this Theme and the community around is so awesome.I’m aware that this kind of support is much more then I should expect, so once again thank you.
regards
a long time X Theme user
KarliMarch 30, 2016 at 3:43 am #858356You’re welcome! 🙂
-
AuthorPosts