BYU-ODH / wp-humanities-byu

Humanities theme following BYU Official style
2 stars 0 forks source link

Sub menu items do not receive nested URLs #566

Closed nuevenueve closed 1 year ago

nuevenueve commented 1 year ago

When Brian tried to add a sub menu item to the main menu, the added menu item couldn't show up under menu category.

image

image

briancroxall commented 1 year ago

I'm not terribly concerned about it not showing up in the nav bar. But, while the page had "projects" listed as its parent in the WP interface, the page would not appear at its proper URL.

WorldsEndless commented 1 year ago

Our theme does not support drop-down menus by design. Dropdown menus are bad design practice. See:

If we need a portal page for nested content, search engines and mobile are much happier with it.

But the url issue needs attention.

WorldsEndless commented 1 year ago

For example, in the original image above, we should see a URL like /proposals/process

spencercheng commented 1 year ago

After working on it with Tory, this is our find: Changing the URL under the menu is not the right way to do it, instead you can changed the URL name/parent when you click on the edit button for a specific page/post you want to change. For example image For example if I want the page to be under "Contact Us" then you would click on the drop down and select contact us. image

*Some parent categories will cause the page to not show up, but in general, it should work perfectly.

spencercheng commented 1 year ago

@WorldsEndless let me know if I missed anything else!

WorldsEndless commented 1 year ago

Yes, in short, changing the nav menu does not (and should not) change the URL structure of the site. But changing a posts parent DOES change its path.