• Resolved bocashark

    (@bocashark)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @bocashark Out of the box, WooCommerce doesn’t display the product short description in that section. I’m guessing this is something being added by your theme or other custom function.

    I think this CSS code might help hide those descriptions. You can add it by going to Appearance > Customize > Additional CSS:

    section.related.products div.woocommerce-product-details__short-description {display:none;}

    Thread Starter bocashark

    (@bocashark)

    That works perfectly, thank you so much!

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @bocashark I’m glad that worked!

    I’ll close this thread now. Feel free to open a new one if you come across other questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide Woocommerce Related Product Description’ is closed to new replies.