Remove product description from related products in Hestia

If you want to remove the product description in related products, create a child theme and add the following code to the functions.php file of your child theme.

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' );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us