Hide Related Products on single product page

  • Posted in : Episody
  • myron
    Participant

    Hello!,

    The standard remove_action on related products is not working with woocommerce hook woocommerce_output_related_products. This is my code in function.php in Episode Child theme:

    /*** Remove related products output ***/
    remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );

    How do I removed the related products block?

    serkan
    Moderator

    Hi @myron
    I will forward this related topic to our developer and I will keep you updated.
    Thanks for your patience.

    ahmetsali
    Keymaster

    Hi, you can use the custom css code below to hide the related products;

    .single-product .related.products {
        display: none;
    }
    

    Cheers.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register