Jump to content
Sign in to follow this  
theTimHunter

Sticky Menu

Recommended Posts

theTimHunter

Hello all,

This could be a stretch, but i want to make my menu act like it does here: paychex.com. It sticks to the top of the browser when you scroll down. I want to add that functionality to my UberMenu here: test.discoveryoutsourcing.com

I found this code:


$isSticky=false;if($(this).scrollTop()>82){$("#wrapper>nav").not("[class='other']").addClass("stick");$isSticky=true}$(window).scroll(function(){if($(this).scrollTop()>82){if(!$isSticky){$("#wrapper>nav").not("[class='other']").addClass("stick");$isSticky=true}}else{$("#wrapper>nav").not("[class='other']").removeClass("stick");$isSticky=false}});

Could I use this if I correctly replace the id/class?

If this won't work, does anyone else have a possible solution?

Thanks,

Tim

Share this post


Link to post
Share on other sites
James B

Hi there, I'm afraid i wouldn't know the answer to that one, have you checked on the ubernav FAQ's. http://wpmegamenu.com/help/#faqs

I've also found a support forum for the product which could help http://support.sevenspark.com/


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • Liv Kundalini
      By Liv Kundalini+
      Hi -
      Pulling my hair out over here, and would love an assist!
      Site I am building, http://www.livkundalini.com/home, has a problem with the submenu items in the nav not appearing. 
      If anyone wants to see what the Nav should look like, feel free to look in the footer on the left hand side.
      Have tried disabling Pagelines and using the twentyseventeen theme, but problem persists.
      Saw this error (pasted at the bottom of this post) displaying in the inspector, and saw discussion of Jetpack potentially being a culprit. Disabled Jetpack, but the problem persists.
      Had the hosting company even flush the server-side cache, but no avail.
      Any thoughts? Please? It's the only thing keeping me from launching this site!
      Many Thanks,
      Todd
       
      WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403   O @ (index):7
    • mtaus
      By mtaus
      I'm using MegaNav on this site and the menu items and logo are "sticky" (which I selected), but the background scrolls. 

    • russe-intensif
      By russe-intensif+
      Hi team,
      checking my site today, i'm surprised to see my MegaNav all in bottom of the pages, while it's in header.
      After getting to change it in couple of pages onto Template part (too time consuming !), i'm desperate and ask you for help :-)
      apprendre-le-russe-avec-ania.fr
      Thank you in advance !

    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • dwpoyner
      By dwpoyner+
      Not sure exactly what is causing the issue. For some reason, why you view my site on mobile, the menu does not show up. It will pop up, but it is black. You can check it out here: http://dev.caryfbc.org. I'm also attaching a screenshot where I shrunk my browser down. Any suggestions?

×