Streaming live at 10am (PST)

Dropdown, w--current, and anchored links


#1

Hey there!
I can't seem to find anything about this in the forums but here's my situation: I've got a dropdown menu in my primary nav bar and each link within leads to an anchored section on a page.

  • mysite.com/use-cases#vip
  • mysite.com/use-cases#friends
  • mysite.com/use-cases#criminals
  • etc

The w--current class is applied the first time I access an anchored section from outside of the target page. However when I visit another section within that page using the ddmenu, the w--current class remains applied to the first link. Imagine that I'm at index.html and I select Solution >Pro Tips where I'm taken to solution.html#protips. Then I select the Contact Us link from within the ddmenu, Solution > Contact Us. The navigation works however the w--current class remains applied to the Pro Tips link. Hopefully this makes sense!


#2

Hi @christate, is the issue happening only for the exported site, or also in the Webflow hosted site?

Could you please share the read-only link to the site? http://help.webflow.com/faq/how-do-i-share-my-sites-read-only-link

Thanks in advance.


#3

Hi @cyberdave, here's the preview. https://preview.webflow.com/preview/protenus-dev?preview=55c13c97ffd6534ac95b8a784fcedc06 Thanks!


#4

I don't see a dropdown in your navbar going to

/solution.html#protips
/solution.html#about
/solution.html#contactus

Can you please provide a screenshot or screen recording of this issue so we can further investigate?


#5

hey @PixelGeek, sorry I was using mock data with the example links in my question. Check out the Use Cases ddmenu in the navbar element. Thanks


#6

Hey guys, any progress on this?


#7

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.