Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Move the navigation below the page header
add_action( 'wp','tu_move_nav_after_page_header' );
function tu_move_nav_after_page_header() {
if ( ! function_exists( 'generate_page_header_get_options' ) ) {
return;
}
$options = generate_page_header_get_options();
if ( '' !== $options['content'] ) {
remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
add_action( 'generate_after_header', 'generate_add_navigation_after_header', 50 );
}
}
@krispassion

This comment has been minimized.

Copy link

@krispassion krispassion commented Mar 8, 2018

Can you tell me where to change that code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment