Adding a second Menu Row in Header?
-
Hi eveyone.
Im just new to using wordress and im terrible with coding and all the tech talk.
Iv downloaded the flatsome theme to set up my ecommerce websitre recommended by a youtube video that i followed.
But im not happy with how the header is layed out. All of my menu options are crambed in between my logo and the cart.What id really love is to have a second menu row just underneath this one to add all my categories to.
Iv folloed some advice on how to do to this already by installing a child-theme and adding this coding:
Into the Theme.php in my child-theme.
function register_my_menus() { register_nav_menus( array( 'new-menu' => __( 'New Menu' ), 'another-menu' => __( 'Another Menu' ), 'an-extra-menu' => __( 'An Extra Menu' ) ) ); } add_action( 'init', 'register_my_menus' );
Then this into my header.php
<?wp_nav_menu( array( 'theme_location' => 'new-menu', 'container_class' => 'new_menu_class' ) ); ?>
i also tried this one
<?php wp_nav_menu( array( 'theme_location' => 'new-menu' ) ); ?>
None of these worked and its really fustrating me now as all the how to’s out there day to do the same thing.
Any help would be great.
Thanks
Mark
- The topic ‘Adding a second Menu Row in Header?’ is closed to new replies.