Sub-page as dropdown menu
I´m fairly new to all this, so bear with me. I´m trying to create a blog/homepage for a charity-project of a friend of mine and got myself into a pickle. I was trying to create sub-pages, that would show up as a dropdown-menu under a parent-page. I checked my “About”-page as parent-page for my “Gambia”-page, but nothing happens. Do I need a plugin or am I simply not seeing the obvious?
Thank you very much in advance,
The blog I need help with is gambiatry.wordpress.com.
The Lovecraft theme doesn’t include a “Home” (homepage) link in its default menu. That indicates that you’ve got a custom menu displayed instead. If you had the default menu displayed, it would include the child pages of any page. Since you are using a custom menu, child pages have to be added individually. The solution is to add a link to the “Gambia” child page (https://gambiatry.wordpress.com/about-2/gambia/) to the custom menu, and nest it beneath the “About” page.
You might also want to consider changing the permalinks of two of your pages, each including an “about” slug, as follows:
Thank you very much, Music Doc. I got it working and corrected the permalinks as well. Another satisfied customer ;)
You’re very welcome, Alex.
Hello again, Doc!
Sorry to bother you, but I need your advice once more.
I got the sub-menus working, but I was wondering if it was possible to disable the link for the parent page, so that only the child links lead to their respective pages, but not the parent link.
Thank you very much in advance,
Yes. The way to do that is to use a custom link for the parent page, but don’t assign a link URL. The parent menu item will then appear as it does now, yet link to nothing.
I had the same idea, I just have no idea how to go about it. I´d change the code, except I can´t find a way for WordPress to show me the HTML or anything and I can´t find an option in the visual editor. Any ideas?
I’m not really familiar with the Menus page at My Sites. I can tell you how to do it at the WP admin Menus page, https://gambiatry.wordpress.com/wp-admin/nav-menus.php.
1. Remove the current parent menu item or items that you want to replace.
2. Use the “Custom Link” module at the left to create a custom menu item for each replacement parent menu item. Don’t enter anything into the URL box. Just enter the word or words you want to represent the parent menu item in the box labeled “link text.” Why they call it “link text” there, and “navigation label” in the menu structure I don’t know. That’s the parent menu item identity.
3. Click the “Add to Menu” button. This item will be added to the bottom of the menu structure.
4. Drag and drop the item into the place you want it to appear, making sure that child items are slightly to the right of the parent item. All menu items can be dragged left, right, up, and down to situate them where they belong.
5. Click the “Save Menu” button at the bottom right of the menu structure, to save the changes.
All menu items can be dragged left, right…
In some cases, I’ve noticed in tests, dragging a child menu item to the left will fail to work. Let me know if you have any trouble with this.
Sorry, Doc, but the system doesn´t let me create a custom link without an URL. You got any other ideas?
Oh, sorry. I was able to add a menu item without an URL at My Sites > Menus easily. If you’re using the Menus page via the admin dashboard, it can still be done but it’ll take acouple of extra steps. Just include an URL when you create the custom menu item, then remove the URL after the item is created (added to the menu structure). Then save the menu to incorporate the new, linkless menu item.
Thanks, Doc! That worked really well :D
I am having problems with my webpage similar to this! I am doing this for my families mission page and I am so confused. I am trying to understand why my About-The Smiths is not showing up? On my dashboard and pages it shows when I view the page. It is published. When I look at it though it doesn’t show up on page?
You’re very welcome! Glad to help. (-̮̮̃-̃)
Your page “The Smiths,” child of the “About” page, is visible. Here it is: http://ptwpiedrasnegras.org/about/the-smiths/. Are you still not seeing it? Note that because the header area (site logo, title, menu, and header image) precedes the page, you have to scroll down to see it.
The topic ‘Sub-page as dropdown menu’ is closed to new replies.