This topic has 4 replies, 2 voices, and was last updated 8 years by Ayoade.

  • Author
  • #108797
     Ayoade
    Participant

    Hi guys,

    I would like to remove related products from the product page? How can I do that?

    #108956
     sharmstr
    Moderator

    Put this in your childtheme’s functions.php file.

    COPY CODE
    
    add_action( 'init', 'woo_remove_related', 10 );
    
    function woo_remove_related() {
        remove_action( 'woocommerce_after_single_product_summary', 'kleo_woocommerce_output_related_products', 20 );
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #108982
     Ayoade
    Participant

    @sharmstr That worked nicely; but I recently included “More Products from thesame Author” in the single product page, and it was also removed by that function.

    Is there another way to solve this problem? Thank you.

    #108991
     sharmstr
    Moderator

    Not that I’m aware of.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #109002
     Ayoade
    Participant

    Okay, thank you very much.

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?