Hide Woocommerce Related Product Description

  • Unknown's avatar

    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!

  • Hi there,

    If you have WooCommerce installed on a WordPress.com Business Plan or have a paid WooCommerce extension on a self-hosted site you can open a ticket while logged into your account at:

    https://woocommerce.com/my-account/create-a-ticket/

    But, if your site is self-hosted and built using the WordPress.org open software, you’ll need to seek assistance from their forums which can be found at:

    https://wordpress.org/support/plugin/woocommerce

    These forums are for WordPress.com hosted websites. If you want to know the difference between the two, you can find more information in this document:

    WordPress.com vs. WordPress.org

  • Unknown's avatar
  • The topic ‘Hide Woocommerce Related Product Description’ is closed to new replies.