WordPress.org

Forums

WooCommerce - excelling eCommerce
Disable Search Box on Product Page (3 posts)

  1. altertheweb
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/woocommerce/

  2. vincedevries
    Member
    Posted 2 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
    Member
    Posted 1 year 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 - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic