• Resolved rootsekoor

    (@rootsekoor)


    Hei

    I have a behavior on main my menu I would like to avoid.

    The theme I’m using has a top main menu. I have several pages in this menu. Some pages have children_pages.
    I want an page with children_pages not to be “clickable”, no to be an hyperlink.

    I tried to found some solutions.
    The first one is to create my own Custom Menu. But in this case, it’s not what I want to do. I’m using the default menu of the theme, which is using top-level pages
    For each page with children_pages, I have changed the “Page Links To” field to “#”
    That’s a part of what I want.
    But still the page is clickable in the menu (because the item contains an hyperlink). And a “click” on the page leads to a scroll to the top of the page.
    That’s really not cool… My Menu is sticky: so i can read the page, scroll down and still see the menu. Then a error-click will scroll to the top and i have to scroll all the way down to finish to read my page

    What is the solution ( without using Custom Menu)?
    CSS is not enough (OK, i can change the a:hover but i can still click!), isn’t it?

    Hope someone will understand my bad english here ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • use javascript:;

    • This reply was modified 7 years, 2 months ago by bin248163.
    Thread Starter rootsekoor

    (@rootsekoor)

    I found a solution to avoid the “scroll up to the top”…
    Instead of using “#” for URL, i just use a URL which doesn’t exist on my site ( a one I’m sure it will never exist )…
    and then some CSS to change the a:hover behavior: keep default cursor, keep same text color

    But now, I have a new problem with this menu and I will open a new topic

    Thread Starter rootsekoor

    (@rootsekoor)

    and so I close this topic

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu Item not clickable’ is closed to new replies.