Recently I purchased my very own copy of the Genesis Framework with the Prose Child Theme from StudioPress. I was so impressed by the framework I decided to build my very own child theme and give it away for free. Now that my child theme is almost nearing the end of its design phase and the beginning of testing phase, I was hoping that I can share some cool code snippets for others using Genesis. Here is a post that tell you How To Add Or Remove Navigation to your child theme.
To make change to the theme, you need to add the respective piece of code to the functions.php file.
Add Or Remove Primary Navigation Menu
// Adds nav after the header add_action('genesis_after_header', 'genesis_do_nav');// Removes nav before the header remove_action('genesis_before_header', 'genesis_do_nav');
Add Or Remove Secondary Navigation Menu
// Adds sub nav before the header add_action('genesis_before_header', 'genesis_do_subnav');// Removes sub nav after the header remove_action('genesis_after_header', 'genesis_do_subnav');
The code above which you add should be placed anywhere after this
And before the following closing code (if it exists)
I hope that these simple codes allow you to modify your site’s navigation. If you need any help or support feel free to write to me and I will be glad to assist you.