Created
January 21, 2018 18:08
-
-
Save generatepress/a6d9d71218832f0f0260885f9f5acd4f to your computer and use it in GitHub Desktop.
Remove the header on all single product pages.
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_remove_header_from_products' ); | |
function tu_remove_header_from_products() { | |
if ( is_singular( 'product' ) ) { | |
remove_action( 'generate_header', 'generate_construct_header' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment