Disable Search Box on Product Page (3 posts)

  1. altertheweb
    Posted 3 years ago #

    Hey everyone. I hope someone can help! I would like to remove the "Search Box" that is showing up on the individual product page. For some reason I am getting a search box with all the pages to the site showing up. I cant seem to figure out how to disable this. Could anyone help?

    You can view the problem at http://integritytraining.biz/shop/nra-first-steps-registration-fee/ to see what is happening.


  2. vincedevries
    Posted 3 years ago #

    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.

  3. julester75
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic