I am relatively new to webflow. I would like to ask if I can set the dropdown toggle in the navbar to open a page and hover over the toggle to open the dropdown list? I asked this because I can do it in editor X but can’t figure out a way to do it in webflow. See my below website link and in the navbar, “The Ideas Factory” points to a webpage but opens the dropdown list on hover. Anyone who knows how to do this please kindly advise.
Thanks,
Dave
Here is my site Read-Only: LINK
([how to share your site Read-Only link][2])
Please see my shared link below. I have modified my design a little and now my navbar looks different to the website that I had shared in the first post. But I am still interested to know if it is possible to click on a dropdown toggle to go to a webpage instead of just opening the dropdown list. Thanks.
To add on for clarity, I wish to find out if it is possible in webflow to design the navbar in the following way. Hover over a dropdown toggle to open the dropdown list instead of clicking on the dropdown toggle to open the dropdown list. Clicking on the dropdown toggle would instead open a webpage.
In the above website designed in editorX, upon hovering over the “The Ideas Factory” in the navbar, the dropdown appears. Clicking on the “The Ideas Factory” opens a webpage.
Regarding the navigate on clicking the dropdown parent… that’s not built into Webflow, however you could do it easily with an id and a bit of jQuery.
The problem is, how would that work on a mobile device, where there is only clicking and no hover? There, you would effectively be making the dropdown menu inaccessible, because a tap would both open it and navigate at the same time.
You would essentially need to build two separate navs, one for mobile, and another for desktops. Even then, desktop users who favor touch screen displays would run into problems with your nav.
In general, best practice is to assume that mouseover (hover) does not exist. It’s fine for styling, e.g. highlight a button before you click it, or animate a news item on mouseover- but never depend on mouseover as part of your functionality or navigation.
Thank you for the reply. Actually on mobile navigation, there is both a clickable dropdown toggle and a clickable dropdown arrow. The first opens a webpage while the latter opens the dropdown list.
Nevertheless, you post is very helpful. By the way, is it difficult to implement this functionality on jQuery?
Thanks for this. I only don’t get it to work unfortunately.
I pasted the code in the head code and tried different ways: without script tags, with script tags and even with script tag that includes jQuery, knowing this isn’t necessary right?
I also tried several destination URLs and the full URL, but it just doesn’t work.
Beautiful, it works like a charm!
I modified the ID correctly, but maybe what I did wrong was putting it in the Head Code? I didn’t know jQuery is loaded afterwards. Or maybe I messed up some other way, either way it works now so I salute you!