This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Non-clickable menu item

  • Creator
    Topic
  • #14055
    canuck
    Participant

    I’ve gone through the video about how to create a menu item that is non-clickable. Works great.

    Say, however, that the menu name is “dog”, and sub-items are cat, chicken and cow. Via the UI, I can only click on cat, chicken and cow, but not “dog”, as expected.

    When I click on any of the sub-items, say “cat”, the URL is now http://domain/dog/cat, which is good.

    However, if I manually set the URL to http://domain/dog, I can access the page, even though it’s not clickable from the menu.

    If I delete the page “dog”, the non-clickable menu still works as the “dog” in the menu is from a new link, and not from the page itself (the page is there only to ensure the breadcrumb is proper). However, the breadcrumb turns from

    http://domain/dog/cat

    to

    http://domain/cat (not good).

    How do I make page “dog” non-accessible, or better yet, not even have page “dog” and instead be able to keep the proper breadcrumb?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #14078
    Jason Bobich
    Keymaster

    Hello,

    However, if I manually set the URL to http://domain/dog, I can access the page, even though it’s not clickable from the menu.

    The fact that you’ve applied the “no-click” class to the menu item has nothing to do with how WordPress is handling a page you created. This is simply adding javascript to the main menu that inhibits the user from clicking the link. There’s nothing else to it, unfortunately.

    How do I make page “dog” non-accessible, or better yet, not even have page “dog” and instead be able to keep the proper breadcrumb?

    Unfortunately this isn’t possible. Forgetting about the no-click menu item (because it is unrelated), our breadcrumbs trail is solely built from the page hierarchy. So in order for there to be a “Dog” page in the breadcrumb trail, there has to be a page to represent that.

    One idea might be to apply the Redirect page template to the “Dog” page and just have it forward somewhere else, like the first page in your sub list.

    #14100
    canuck
    Participant

    Ok, thanks, pretty much what I thought.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.