• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to create a submeny underneath the main menu?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › StudioPress Themes › Infinity Pro › How to create a submeny underneath the main menu?

This topic is: resolved

Tagged: menu, nav menu, secondary menu, submenu

  • This topic has 9 replies, 2 voices, and was last updated 3 years ago by Brad Dalton.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • April 10, 2022 at 10:38 am #505005
    Klubbofg
    Participant

    Hi, I am trying to achieve this:

    View post on imgur.com

    So when I click on a menu item that has children, I want those children to show underneath the main menu, like a sub menu.

    Right now, the theme is just using the rollover effect. I've tried checking the theme customizations but I can't find anything related to the thing I want to achieve. I have also checked how the code is generated and I can see that the sub menu "ul" is located inside the main "ul". Everything would be solved if I could somehow move the sub menu "ul" to be located underneath the main "ul". See link: https://imgur.com/iIdQo1O

    https://niki.a.vaia.cloud/spela-golf/
    April 24, 2022 at 10:27 pm #505101
    Brad Dalton
    Participant

    What theme are you using?

    1. You could add a new widget area under the primary nav menu and populate it with the nav menu widget.

    2. Or add a third a menu

    3. Or reposition the secondary menu by changing the hook.


    Tutorials for StudioPress Themes.

    April 26, 2022 at 8:44 am #505110
    Klubbofg
    Participant

    The third alternative sounds like the best solution. Do you have some hints on how to do it? Do I have to change something in the nav file? I'm very novice when it comes to hooks and stuff to WordPress. I'm using Infinity via Genesis btw.

    April 26, 2022 at 8:55 am #505111
    Brad Dalton
    Participant

    My suggestion would be to look at using blocks or a full site editing theme if your coding knowledge is limited.

    Or

    You can reposition the footer menu back to the after header hook position ( remove PHP code line 152 in functions.php ) however you'll also need to add/modify CSS.


    Tutorials for StudioPress Themes.

    April 26, 2022 at 8:57 am #505112
    Klubbofg
    Participant

    Thanks for the quick answer! I'm gonna try and figure it out!

    April 26, 2022 at 9:14 am #505113
    Klubbofg
    Participant

    Okay, the problem with using the footer menu is that it's constant on all pages. How can I fix it so when I arrive on the page Golf, it shows all Golf's children. And when I go to the page About Us it shows its children and so on?

    April 26, 2022 at 9:58 am #505114
    Brad Dalton
    Participant

    You can use conditional menus

    To do this :

    1. You can use custom code

    or

    2. Choose from a range of plugins for conditional menus.

    or

    3. A conditional blocks plugin.


    Tutorials for StudioPress Themes.

    April 26, 2022 at 12:30 pm #505115
    Klubbofg
    Participant

    Thanks! Gonna check it out. Now that you mention it, I was actually reading about conditional menus before, so thanks for reminding me 😀

    April 26, 2022 at 2:15 pm #505118
    Klubbofg
    Participant

    After fiddling around with the functions.php I got it to work, but the problem was that one menu was always showing and it was too complicated to get it to work on every sub-page, so I left it and my solution was using conditional menu plugin. Thank you again!

    April 26, 2022 at 10:48 pm #505119
    Brad Dalton
    Participant

    Anytime!


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble