Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #21215


    I’d like to remove the “Related Products” customers see when they click on any specific product in my Shop. Is there a quick CSS code for that?


    Hi saltyglo,

    You can add this to Quick CSS:

    .related.products {
    display: none;


    .related.products {
    display: none !important;

    Hope this helps.




    Actually I wanted to know how to remove Related Products when there are Upsells displayed if that’s possible


    It worked, thank you!


    You can try to replace following line in wp-contentthemesflashlightwoocommerce-configconfig.php:

    add_action( 'woocommerce_single_product_summary', 'avia_woocommerce_output_related_products', 60);


    global $product, $woocommerce, $woocommerce_loop;
    $upsells = $product->get_upsells();

    if ( sizeof( $upsells ) == 0 )
    add_action( 'woocommerce_single_product_summary', 'avia_woocommerce_output_related_products', 60);

    I didn’t test the code but it uses some code parts from wp-contentpluginswoocommercetemplatessingle-productup-sells.php and should work.


    Nah didnt work

    I got the error

    Fatal error: Call to a member function get_upsells() on a non-object in /wp-content/themes/flashlight/woocommerce-config/config.php on line 105

    I will take a look later, im not that fussed, just would have been a nice addition


    Hi xGSTQ,

    I’ll tag the topic for Peter as I’m not familiar with what he was trying to do but he may be able to offer an additional fix.




    Found this answer on Woocommerce site. Had this issue after updating wool 2.0.7 and Propulsion 1.9.1 and it worked for me. It took out the Related product’s hr flag and everything from my product pages.

    Page on Woo…



    Glad you found a solution :)

    Best regards,


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

The topic ‘Remove "Related Products" on Shop page’ is closed to new replies.