Video Guide
Here’s a video guide for you so you can have a better understanding of the advanced Product Search block of WowStore.
Step-by-Step Guide to Add and Use Product Search Block
Here’s a step-by-step guide to adding WooCommerce product search in a page and header with its customization.
Adding Product Search Block on Page
- Install and activate the WowStore plugin for WooCommerce.
![Install ProductX](https://wpxpo.com/docs/wp-content/uploads/2023/01/Install-ProductX.png)
- Go to your WordPress dashboard and navigate to “Pages” → “Add New” to create a new page or edit an existing page where you want to add the product search block.
![Add New Page](https://wpxpo.com/docs/wp-content/uploads/2022/11/Add-New-Page.png)
- Search for “Product Search” in the block search bar. Select the “Product Search” block from the search results, and it will be added to your page.
![Adding WooCommerce Product Search Block](https://wpxpo.com/docs/wp-content/uploads/2023/05/Adding-WooCommerce-Product-Search-Block.png)
Customizing WooCommerce Product Search Block
Once the product search block is added to your page, click on it to reveal the block settings panel on the right side of the editor.
Search Field Layouts:
Click on the “Layout” option to choose from five different search field layouts. This allows you to select different layouts to find the best one for your website design and user experience.
![Search Field Layout](https://wpxpo.com/docs/wp-content/uploads/2023/05/Search-Field-Layout.png)
Search Product List Layouts:
Use the “Product List Layout” option to select one of the three available layouts for displaying the search results.
![Product List Layout](https://wpxpo.com/docs/wp-content/uploads/2023/05/Product-List-Layout.png)
- Use the Width setting to adjust the side dimension of the search bar.
- The column set will let you adjust how many products will get shown in the column.
- Column Gap setting will let you adjust the gap between two or more columns.
![Product Search width, column and column gap settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Product-Search-width-column-and-column-gap-settings.png)
Search Form Style:
Customize the form style settings from this setting.
![Search Form Style Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Search-Form-Style-Settings.png)
- Customize the input typography, including the input text’s size, font, height, and spacing.
- Form Height will let you adjust the height of the search bar.
- Form borders settings let you select 3 types of border styles and set border color.
- Form radius and input padding let you precisely adjust the top/bottom/left/right radius and padding.
- Input Color lets you change the color of the Input text and use the Input background to add a solid or gradient color in the text input field.
Category Style:
Modify the style of product categories displayed in the search results using the “Category Style” settings.
![Category Style Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Category-Style-Settings.png)
- Selected Typography will let you adjust the selected text’s typography, including the input text’s size, font, height, and spacing.
- Dropdown Typography settings do the same for the texts in the category dropdown.
- Text color is very intuitive; it lets you change the color of the text.
- The width setting is for adjusting the category section wideness.
- Separator Width and Separator height can be used for category separators.
Search Icon:
Customize the appearance of the search icon using the “Search Icon” settings.
![Search Icon Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Search-Icon-Settings.png)
- Adjust Icon Size, normal, and hover color from adjacent settings. Use the button Background Color to select a background color for the search icon.
- Search Button Radius, Search Button Width, and Button Margin settings are used for relevant settings. You adjust the top/bottom/left/right panel separately.
More Result Button:
Modify the “More Results” button settings to enhance the user experience of exploring additional search results.
![More Results Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/More-Results-Settings.png)
- Use adjacent settings to change the typography, text, and hover color.
Dropdown Style:
Customize the style of dropdown menus in the search block using the “Dropdown Style” settings.
![Dropdown Style Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Dropdown-Style-Settings.png)
- Adjust the Dropdown Background color, borders, radius, box shadow, item spacing (X and Y), separator color, and width with the intuitive settings.
Product Image:
Control the display of product images in the search results using the “Product Image” settings.
![Product Image Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Product-Image-Settings.png)
- Adjust the image width, height, and radius from these settings to perfectly align the product image in your search bar.
Product Title:
Customize the appearance of product titles in the search results with the “Product Title” settings.
![Product Title Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Product-Title-Settings.png)
- Modify typography-related settings, regular color, hover color, and search highlighted color from the product title settings.
Product Price:
Customize the color and typography settings for product prices using the “Product Price” settings.
![Product Price Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Product-Price-Settings.png)
- Get full typography settings, and adjust the color from the intuitive settings panel.
Product Rating:
Control the color and visibility of product ratings in the search results using the “Product Rating” settings.
![Product Rating Settings](https://wpxpo.com/docs/wp-content/uploads/2023/05/Product-Rating-Settings.png)
- Enable or disable ratings with a single click.
- Adjust the Rating size with e slider.
- Use the Fill Color and Empty Color settings to change adjacent rating colors.
Adding WooCommerce Product Search in the Header
1. Enable the “Saved Template” addon in the WowStore settings.
![Enabling Saved Template Addon](https://wpxpo.com/docs/wp-content/uploads/2023/05/Enabling-Saved-Template-Addon.png)
2. Go to “WowStore” → “Saved Template” in your WordPress dashboard. Click on “Add New Template” to create a new saved template.
![Creating New Saved Template](https://wpxpo.com/docs/wp-content/uploads/2023/05/Creating-New-Saved-Template.png)
3. Add the “Product Search Block” to the template and customize it as needed. Click on “Publish” to save the template.
![Adding WooCommerce Product Search Block](https://wpxpo.com/docs/wp-content/uploads/2023/05/Adding-WooCommerce-Product-Search-Block.png)
4. Return and Copy the shortcode for the saved template from the “Saved Template” page.
![Copying The Shortcode](https://wpxpo.com/docs/wp-content/uploads/2023/05/Copying-The-Shortcode.png)
5. Go to “Appearance” → “Customize” in your WordPress dashboard.
![Go to Theme Customize](https://wpxpo.com/docs/wp-content/uploads/2023/05/Go-to-Theme-Customize.png)
6. Select the “Header” section to access its settings.
![Theme Header Customization](https://wpxpo.com/docs/wp-content/uploads/2023/05/Theme-Header-Customization.png)
7. Locate the desired section in the header where you want to add the product search. Add an HTML element to that section.
![Adding and Editing HTML in Header](https://wpxpo.com/docs/wp-content/uploads/2023/05/Adding-and-Editing-HTML-in-Header.png)
8. Paste the shortcode in the HTML text field.
![Pasting Shortcode in HTML](https://wpxpo.com/docs/wp-content/uploads/2023/05/Pasting-Shortcode-in-HTML.png)
9. Click on “Publish” to save the changes.
Note: Adjust the width of the product search block from the general settings if it does not fit properly within your header section.
Advanced Settings
In the advanced tab, you will get settings for the following:
- General
- Responsive
- Custom CSS
- Advanced
![Block Advanced Setting](https://wpxpo.com/docs/wp-content/uploads/2023/08/Block-Advanced-Setting.png)
General
You can modify class ID, z-index, margin, padding, normal & hover colors, border, box shadow, and border radius from the general settings.
![Advanced General Settings](https://wpxpo.com/docs/wp-content/uploads/2023/08/Advanced-General-Settings.png)
Responsive
You will have the responsiveness settings for the blocks if you want to show the block on particular devices or not.
Use the toggle bar to enable the following options:
- Hide On Extra Large
- Hide On Desktop
- Hide On Tablet
- Hide On Mobile
![Advanced Responsive Settings](https://wpxpo.com/docs/wp-content/uploads/2023/08/Advanced-Responsive-Settings.png)
Custom CSS & Advanced
You can manually add your custom CSS to modify your blocks in the custom CSS field. And in the advanced field, you can add custom CSS classes.
![Advanced Custom CSS settings](https://wpxpo.com/docs/wp-content/uploads/2023/08/Advanced-Custom-CSS-settings.png)