300, 'height' => 300, 'crop' => 0, ); } ); // Remove Heading in Content Description Tab Woo add_filter('woocommerce_product_description_heading', '__return_null'); add_action('wp_enqueue_scripts', array( $this, 'nighty_enqueue_scripts_woo' ) ); } function nighty_woocommerce_show_title_shop_page( $param ){ if( ( is_shop() || is_product_category() || is_product_tag() ) && get_theme_mod( 'woo_archive_show_title', 'yes' ) == 'yes' ){ return true; } return false; } function nighty_woocommerce_template_loop_product_cat(){ $id = get_the_id(); $cats = get_the_terms( $id, 'product_cat') ? get_the_terms( $id, 'product_cat') : '' ; $value_cats = array(); if ( $cats ) { foreach ( $cats as $value ) { $value_cats[] = is_object($value) && $value->term_id ? '' . $value->name . '' : ""; } } echo implode(' ', $value_cats); } function nighty_woocommerce_before_main_content(){ ?>