Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
November 2, 2016 at 2:52 pm in reply to: Adding third and fourth nav menu with mobile dash icons #195647oliverrealizeMember
I've customized the code to get it to work to add what was missing. It is now working. Well at least the menus are now showing I still have to work on the responsive js
November 2, 2016 at 12:54 pm in reply to: Adding third and fourth nav menu with mobile dash icons #195640oliverrealizeMemberBut I'm not adding a footer menu. But I still set it up this way to test and it didn't work.
November 1, 2016 at 10:21 pm in reply to: Adding third and fourth nav menu with mobile dash icons #195626oliverrealizeMemberThe first part of code works fine to register the menus.
But this code below doesn't seem like it's actually adding the menu location. I'm no php expert but I can see that it's not referencing the menus first to apply the array
// Add attributes to markup // Add footer menu just above footer widget area add_action( 'genesis_before_footer', 'amethyst_footer_menu', 9 ); function amethyst_footer_menu() { genesis_nav_menu( array( 'theme_location' => 'footer', 'container' => 'div', 'container_class' => 'wrap', 'menu_class' => 'menu genesis-nav-menu menu-footer', 'depth' => 1 ) ); }
November 1, 2016 at 9:13 pm in reply to: Adding third and fourth nav menu with mobile dash icons #195625oliverrealizeMemberGiving this a shot right now. Thank You.
October 31, 2016 at 5:06 pm in reply to: Adding third and fourth nav menu with mobile dash icons #195578oliverrealizeMemberHere is the functions.php of the child theme. Trimmed to just the parts I added to create third and fourth menu.
//* Adding Third and Fourth Nav Menu function register_additional_menu() { register_nav_menu( 'third-menu' ,__( 'Third Navigation Menu' )); register_nav_menu( 'fourth-menu' ,__( 'Fourth Navigation Menu' )); } add_action( 'init', 'register_additional_menu' ); add_action( 'genesis_after_header', 'add_third_nav_genesis' ); function add_third_nav_genesis() { echo'<div class="nav-primary">'; wp_nav_menu( array( 'theme_location' => 'third-menu', 'container_class' => 'genesis-nav-menu' ) ); echo'</div>'; } add_action( 'genesis_header', 'add_fourth_nav_genesis' ); function add_fourth_nav_genesis() { echo'<div class="nav-primary">'; wp_nav_menu( array( 'theme_location' => 'fourth-menu', 'container_class' => 'genesis-nav-menu' ) ); echo'</div>'; }
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)