Sub-page as dropdown menu

  • Author
    Posts
  • #2460928

    zeraphyne
    Member

    Hi, guys!
    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,
    Alex

    The blog I need help with is gambiatry.wordpress.com.

    #2461032

    musicdoc1
    Member

    Hi,

    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:

    1. About = https://gambiatry.wordpress.com/about-2/
    2. Impressum = https://gambiatry.wordpress.com/about/

    #2461253

    zeraphyne
    Member

    Thank you very much, Music Doc. I got it working and corrected the permalinks as well. Another satisfied customer ;)

    #2461255

    musicdoc1
    Member

    You’re very welcome, Alex.

    #2461256

    zeraphyne
    Member

    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,
    Alex

    #2461257

    musicdoc1
    Member

    Alex,

    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.

    #2461258

    zeraphyne
    Member

    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?

    #2461259

    musicdoc1
    Member

    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.

    Steps:
    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.

    #2461260

    musicdoc1
    Member

    5. Click the “Save Menu” button at the bottom right of the menu structure, to save the changes.

    #2461261

    musicdoc1
    Member

    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.

    #2461271

    zeraphyne
    Member

    Sorry, Doc, but the system doesn´t let me create a custom link without an URL. You got any other ideas?

    #2461272

    musicdoc1
    Member

    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.

    #2461273

    zeraphyne
    Member

    Thanks, Doc! That worked really well :D

    #2461274

    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?

    https://ptwpiedrasnegras.wordpress.com

    #2461275

    musicdoc1
    Member

    @ zeraphyne,

    You’re very welcome! Glad to help. (-̮̮̃-̃)

    #2461276

    musicdoc1
    Member

    @ smithmelanie2101,

    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.

    #2461277

    musicdoc1
    Member

    @ smithmelanie2101,

    The issue you describe is unrelated to the present topic. So if it is still unresolved please start a new thread, here: https://en.forums.wordpress.com/?new=1.

The topic ‘Sub-page as dropdown menu’ is closed to new replies.