Support » Plugin: WooCommerce » Remove “You might consider these popular products”

  • I would like to remove the automatic “YOU MIGHT CONSIDER THESE POPULAR PRODUCTS” section that appears at the bottom of pages. How do I do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Product pages have “Related products” and the cart page has “Cross sells”.

    Probably you mean related products and the code to remove theme is here:
    https://gist.github.com/rynaldos/90196ab3750611f56997f7e40260deb0

    The code goes in functions.php for your child theme. If you don’t have a child theme, you can use the “My Custom Functions” plugin.

    If it doesn’t work, maybe your theme does things differently, in which case please advise what theme you are using.

    I added the related products remove code to functions.php and the “you might consider these popular products” section still appears.
    See screenshot at http://nearbuyart.com/wp-content/uploads/2017/08/Screenshot-84-e1501875838929.png

    I am using Divi theme. I also have WC Marketplace plugin installed. I thought it was coming from the plugin, but on the WC Marketplace forum, they sent me to the same remove related products code you recommended.

    Any ideas?

    Thanks.

    Temporarily deactivate all other plugins to test. If the related products are still there, they will be coming from Divi.

    wordpress.org forum members don’t have access to commercial themes.

    Best guess is that the theme has already used the remove_action() to remove the default WooCommerce action, then replaced it with a custom one. To remove the custom one, you need to find it and the priority it used. Your new remove-action() priority to remove the custom add_action() must be the same as that used in the corresponding add_action().

    Have a look in:
    wp-content/themes/divi/woocommerce/content-single-product.php
    if not, the themes functions.php, if not look for something like
    wp-content/themes/divi/includes/template_hook.php

    If necessary, you’ll need to download all the website files onto your hard disk. File zilla will make short work of that, then you can text-search them.

    I found the source. It is coming from InstantSearch plugin.

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove “You might consider these popular products”’ is closed to new replies.