No click in a custom autonav
PermalinkI am building a site based on the great solid groud theme by 1976Ltd. IWith the help of 1976Ltd i have changed the custom Nav menu so that the dropdowns are visible on media screens but the the nav is also working properly responsive.
My Question is, i want to give the 3 top level menu items a no click, so that they act as headings for the submenu's below. Best would be if those three items wouldn't have a page and wouldn't be clickable. But they still have to work in responsive mode as the do now.
I have absolutely no idea how to get this done, i have tried the redirect to first subpage but that just doesnt do it for me.
Anyone can help me with this?http://ikdachtvanwel.nl
Thanks!
Gerk
And the custom classes do not seem to work.
have you tried something like:
li.has-dropdown a { cursor: default !important; }
EDIT: Just to add to that if you can give the parent link a specific class, and just give that the default cursor CSS that should work.
@mhawke, thanks for the input, that is a solution i have tried before but that just doesn't nail it.
Then go to Dashboard->Block Types and install the Dead Link block
I'm assuming you have a Global stack that holds your autonav. If you add this to your Global stack, then it uses jQuery to remove the href attribute from the link specified in the block.
Each block only disables one link so you have to add a block for each link you need to kill. If you have a whole bunch to kill, I could work up a block where you can add multiple links to one block.
Let me know if this works for you.
One benefit of doing it this way is that the < a >link< /a > still remains in the code so that any existing styling of the < a > tag still works.
Open up the zip file and have a look. It's pretty simple.
If you have already installed the original block, here's how to refresh your installation to use the new functionality:
1) Download the attached .zip file and expand it to your computer
2) Upload the contents to your [root]/blocks/dead_link folder, replacing the existing files.
3) Go to 'Dashboard->Block Types' and click on the 'Dead link' block.
4) Click the 'Refresh' button
That's it. You should see a drop-down for the cursor style when you edit the block.
Go to the full sitemap from your dashboard, click on the "home" link in the sitemap, from the menu choose "External link" in the pop up window give your link a name, this will appear in your main nav, for example "about us" where it asks for a URL, just enter a hash "#", then click "add"
You will see the external link in your sitemap, then move your sub pages under it, when back on your site, you can click your new link and it will do nothing and go nowhere, but the sub pages underneath will all be live, hope that makes sense.