Last active
August 29, 2015 14:27
-
-
Save thecodepoetry/12df5593d86ee9713d16 to your computer and use it in GitHub Desktop.
Add fancy header to woocommerce product category
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
function dt_product_category_config() { | |
if( is_product_category( 'digital-goods' ) ) { | |
$pagid = 34843; //header, sidebar, footer settings of the page id given will applie to product categiry | |
$config = presscore_get_config( ); | |
presscore_config_base_init( $pagid ); | |
} | |
} | |
add_action( 'get_header', 'dt_product_category_config', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add above code in child theme functions.php, header, sidebar, footer settings of the page with 34843 will apply to product category with slug digital-goods