WooCommerce 5.5.1 issue with Divi Search

We have had some reports of Divi Search not working well with WooCommerce and BodyCommerce – it displays a white page. Upon investigation, we discovered that it is actually an issue with the Divi Theme and not something related to our plugins.

We did not want to leave you guys hanging, so we dug a little deeper and found a solution.


The Divi Theme Builder is not working when searching for products, for example: /?s=shirt&post_type=product

This works fine on older versions of WooCommerce, but NOT in the latest update which is WooCommerce 5.5.1


The solution is to download the file below, unzip it and upload to the directory: \wp-content\plugins\woocommerce\includes\class-wc-query.php

Here is the code we changed for your reference


    • No stupid question

      You can use FTP or file manager on your server.

      or you can install a file manager plugin on your website to update (but NOTE – delete after)

      Hope this helps

  1. You guys are heroes. This fixed the divi builder not directing properly to the search.

    • Thank you for the comment, glad it helped πŸ˜€

  2. Thank you, it worked for me πŸ™‚

    • Good to hear πŸ˜€

  3. it doesn’t work for me

    • Try clear cache or disable any other plugins to see if this solves it.

  4. Thanks a lot it works very well. (even it is an Oxygen site)

    • Great to hear – thanks for the comment

  5. Hi. I did this. But still not working for me.

    • Try clear cache or disable any other plugins to see if this solves it.

Submit a Comment

Explore more from Divi Engine