Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Last active August 29, 2015 14:27
Show Gist options
  • Save thecodepoetry/12df5593d86ee9713d16 to your computer and use it in GitHub Desktop.
Save thecodepoetry/12df5593d86ee9713d16 to your computer and use it in GitHub Desktop.
Add fancy header to woocommerce product category
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 );
@thecodepoetry
Copy link
Author

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

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