I’m relatively new to WP and GP so bear with me. I would like to have my secondary navigation be displayed before main content. I have found this code snippet:
add_action( 'after_setup_theme', 'lh_move_secondary_nav' );
function lh_move_secondary_nav() {
remove_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 7 );
add_action( 'generate_after_footer_widgets', 'generate_add_secondary_navigation_before_header', 7 );
}
I understand that if I have my secondary nav set to above header and change this code snippet to generate before main content, this should work. I am assuming this is done in function.php? I am wondering is this also possible to do by creating a new hook element?
Thanks,
David
GeneratePress 2.2.2