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
<?php | |
/* add Genesis post type archive support for product archive (shop page) */ | |
function my_custom_init() { | |
add_post_type_support( 'product', 'genesis-cpt-archives-settings' ); | |
} | |
add_action('init', 'my_custom_init'); | |
/* remove woocommerce title and description in shop and archive pages */ | |
add_filter( 'woocommerce_show_page_title', '__return_false' ); | |
remove_action( 'woocommerce_archive_description','woocommerce_product_archive_description',10 ); |