# Product Search Box Above the Shop

> Places the WooCommerce product search box above the product grid on the shop and product category pages.

- Type: Universal
- Runs: Wc before products list
- Category: [Search](https://wpide.com/library/category/search/)
- Requires: WooCommerce
- Tags: woocommerce, search, shop
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/product-search-above-shop/

## Code

```php
<div class="wpide-shop-search" style="margin:0 0 1.5em;max-width:480px;">
    <?php if ( function_exists( 'get_product_search_form' ) ) { get_product_search_form(); } ?>
</div>
```

## Notes

Style it with the .wpide-shop-search class.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Product Search Box Above the Shop" in its snippet library and add it in one click; or create a new Universal snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
