Hello! I need a little help with the subnav styling. We want main nav and subnav to be contained within the header area (not dropdowns below the header).
The subnav needs to be displayed horizontally, stacked directly under the main nav, with the total height of the two nav elements matching the height of the logo. The first item in the sub-nav should align with the first item in the main nav (not offset to match it’s parent element). A screenshot of the mockup is included in the private links.
There will be only three pages in the main nav and the sub-navs will all link to anchors.
Edited to add: the client showed me an example of how they would like the navigation to work: https://www.effekt.dk/work
(Not a WordPress site). The second line of navigation is unique to each page and is always visible, so how would you recommend setting this up?
Hey aynest,
Thank you for using Enfold.
You can add different sets of menu using the wp_nav_menu function wrapped in an is_page conditional function. Add it directly in the includes > helper-main-menu.php template.
// https://developer.wordpress.org/reference/functions/wp_nav_menu/
// https://developer.wordpress.org/reference/functions/is_page/
Altering the default sub menu will require more modification in comparison with the above method.
Best regards,
Ismael
