Introduction
Integration for the Genesis theme can be done by modifying the ‘header.php’ file in order to exclude the default theme header/menu and replace this with the shortcode of your Hero Menu.
Manual Integration
The required change will be made to the ‘header.php’ file within the root of the theme folder. It would be necessary to edit the file to comment out or remove line 36. Below is an example of the code as it should look without any changes, the lines of code shown are 35 -37.
do_action( 'genesis_before_header' ); do_action( 'genesis_header' ); do_action( 'genesis_after_header' );
With line 36 removed this is then replaced with the ‘do_shortcode’ function which contains and executes the shortcode of your Hero Menu in order to display it. The modified snippet is shown below.
do_action( 'genesis_before_header' ); //do_action( 'genesis_header' ); echo do_shortcode('[hmenu id=1]'); do_action( 'genesis_after_header' );
Conclusion
As with all manual integrations its advised to make the above change through a child theme in order to maintain a backup of the original ‘header.php’ within the parent theme folder and to also prevent future theme updates from overwriting this change.