WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Disable Search Box on Product Page

Disable Search Box on Product Page

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think the searchbox comes as a part of the sidebar with the other stuff (sitemap etc) below that.

    Add this to your (child) theme’s function.php:

    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);

    That should make the whole sidebar disappear.

    You may also try instead to move some widget into your ‘blog’ sidebar. That helped me pretty much.

    I have the same problem, but the search form appears under my postcontent. Any ideas on how to remove it would be appreciated. I can’t amend my theme’s function.php file unfortunately, so if anyone knows where the code for this search form is so I can unhook it that’d be great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Search Box on Product Page’ is closed to new replies.
Skip to toolbar