• Resolved crinkel

    (@crinkel)


    Hi, I recently created a menu with both pages and categories on a static homepage. When I select the page menu items all works fine and the menu links directly to the page, when I hover over the category menu items the drop down box works fine and shows the pages within the category and if the pages are selected they work fine. The problem is that if I actually click the category in the menu I see a 404 error page.

    Is this expected behaviour of a menu category item? Is there anyway to prevent a menu category item from displaying a 404 error message if it is selectively clicked.

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • If I get you correctly, you likely have the category (parent) menu item linked wrong. Go to the menu editor and set it to have a link of a hash only #. That should make it be only a main drop down with no page/post attached to it.

    Hope that helps ??

    Thread Starter crinkel

    (@crinkel)

    Thanks for the reply ecotechie, I have not located where to place the # as you describe. I have found a workaround which seems to work by using the plugin “Post Tags and Categories for Pages”(works fine with latest version) which enables me to assign a category to a page. I created a page which says “please use drop-down menu to navigate*, I then added this page to the categories which are my menu items. In this case, if anyone specifically selects the menu item (not one of the actual drop-down items within the menu) then they are3 shown a page telling them to “please use drop-down menu to navigate”. This prevent the 404 nothing found error and guides the viewer back to the drop-down menu.

    I appreciate this will highlight my inability but wanted to share it anyway.

    It would be great if you can guide me more on where to place #, I would like to implement your streamlined solution if it is possible.

    Hi @crinkel,

    Here is what my menu looks like:

    Custom Link Menu Item

    The basics of it is, under Add menu items > Custom Links, you add # to the URL field and what you want the menu item to say in Link Text. You can then add any of the sub-menu items.

    Hope that clears it up for you ??

    Thread Starter crinkel

    (@crinkel)

    Hi ecotechie,

    Thank you for the extra guidance and for showing me the light. Your method is perfect and works great.

    Many thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘categories as a menu Item’ is closed to new replies.