• Resolved stijndp

    (@stijndp)


    Hi,
    Using the default WP menu tool.
    When I add a sub-page to the menu, the sub-page and the correct menu show, but the parent page is no longer clickable.
    Any advice?
    Thanks,
    Stijn

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author sonalsinha21

    (@sonalsinha21)

    Replied back to your email.

    Thread Starter stijndp

    (@stijndp)

    I don’t see why you can’t assist in solving this menu issue without requiring me to go Pro.

    Hi @sonalsinha21

    the bug also appears in the header of the posterity theme. Could you fix the bug?
    As far as I understand, the problem is that the attribute “data-toggle” is on the parent menu item and blocks the href attribute. You could restrict the attribute to the icon next to it, for example.

    You can see the problem here: https://kuehberg-dorlar.de/ on the last parent element “Verein”

    • This reply was modified 2 years, 9 months ago by derries. Reason: add example

    Wow, really “nice” feature you have installed here. Preventing a normal click on a menu for desktop user (on mobile it works great). Why this? I don’t get it.

    Different people seem to have the same issue and still no solution, no hint how to change it?

    Well, we can help each other here… I found a hacky solution, which sure gonna be override with the next update, but:

    search for the topMenu: function () in js/script.min.js file. You gonna see something like this:

    d.children("i.sub-mark, span.title, .top-menu li a").on("click keydown", function (e) {									
                                        if ("keydown" !== e.type || -1 !== [13, 32].indexOf(e.keyCode)) {
                                            e.stopPropagation(), e.preventDefault();

    Now remove , e.preventDefault().

    You also might want to rename .top-menu li a to something else in order to open the dropdown menu only by click on the arrow.

    • This reply was modified 2 years, 7 months ago by cokanh.
    Theme Author sonalsinha21

    (@sonalsinha21)

    Please let us know in which browser and Operating system you get this issue because we were unable to replicate the issue in Windows 10 and 11 using Opera, Chrome, Edge and Firefox browsers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Menu: parent page not clickable’ is closed to new replies.