- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 12.01.22, 11:44
- Opened by: Stefano
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #22888 - Disable 1st level menu link for items with submenu
Hi,
I need to disable the link for the first level menu items with submenu.
For example, I want to prevent the current page from being reloaded by clicking on the “Prodotti” item in the menu (screenshot 01).
I tried to leave blank the “link” field in the Promokit menu module, then to put “#” (screenshot 2) but it doesn’t work.
Comments
Hi, Stefano.
Try following CSS fix
I’m sorry but it doesn’t work.
Applying this fix no longer opens the submenu.
check here: https://packaging.bwlab.it/index.php
I really can’t understand why this doesn’t happen in your demos…
sorry, my bad.
try this
I already tried this fix.
Using it stop the submenu to open in mobile version (screenshot 1).
Using “pointer-events:none” can’t work in my opinion because both the “item name” span and the “down arrow” span are contained in the same link (screenshot 2).
Attachments:
screenshot-01.jpg(59.4 KiB)screenshot-2.jpg(105.6 KiB)Ok, but you can apply it for big screens only
Sure, I can do it, but in that way in mobile version the page will reload if i tap on the menu item name, and it shouldn’t.
Ok, another try but using JS - https://take.ms/nuVFi
This fix works perfectly, thanks!
Yu can close the ticket.
You are welcome!