I’ve just discovered Quark, and thought it looks awesome – and it is, but I’m just having some issues with creating a secondary nav.
Basically, I have created a child theme, and all seems to be fine there.
I have a fresh functions.php in my child theme with:
register_nav_menus( array( 'tagtiv8-product-menu' => esc_html__( 'Tagtiv8 Products Menu', 'tagtiv8-products-menu' ) ) );
I have added the menu to header.php using:
<div class="banner row"> <nav id="product-navigation" class="secondary-navigation" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'tagtiv8-products-menu', 'menu_class' => 'tagtiv8-products-menu' ) ); ?> </nav> <!-- /#product-navigation.secondary-navigation --> </div> <!-- /.banner.row -->
I have then created the menu in WP, and selected the location.
I have then selected 4 items to be added to the menu, and they are the only 4 items in there.
One of the issues is, ‘Home’ is being displayed in the menu, and I can’t see why it’s being added.
The other issue is, when I add a CSS class to a menu item on the secondary menu, it doesn’t actually add the class when I check it via inspector on the front end.
If I add a class to the primary menu, it works fine.
The site is currently at: http://j.mp/19IbKec
So far, I’ve tried completely deleting WordPress, reinstalling and recreating the child theme. I only have 20-30 lines of CSS, a custom header and the lines shown above in functions.php.
Any assistance would be greatly appreciated.
- The topic ‘Secondary Navigation Issue’ is closed to new replies.