Hide Woocommerce Related Product Description
-
I built a woocommerce store, client wanted to remove the tabs under individual products, so we put all of the descriptions in ‘Short Description’. We want the short description to show up next to the product that is open, but not under the the 3 listed items in the Related Products section. I have tried a bunch of CSS and Function.PHP codes, nothing seems to work
This completely removes short description form product and related:
.woocommerce-product-details__short-description { display: none; }Neither of these worked…
/**
* Remove related products output
*/
remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );function remove_related_products_short_description( $input ) {
if( is_product() ) {
return 0;
}
return $input;
}
add_filter( ‘hestia_shop_excerpt_words’, ‘remove_related_products_short_description’ );Any help would be greatly appreciated!
The page I need help with: [log in to see the link]
- The topic ‘Hide Woocommerce Related Product Description’ is closed to new replies.