Created
October 20, 2017 19:53
-
-
Save generatepress/d25cdc125c7950bffc7223daaeea3065 to your computer and use it in GitHub Desktop.
Move the navigation below the page header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you tell me where to change that code?