You can set up Custom Labels for products based on their Custom Fields to highlight specific products in search results. In this article, you learn how to adjust Custom Labels in the Instant Search Widget. To do so in the Search Results Widget, see the instructions here.
Add a Custom Label
You can add Custom Labels based on the product Custom Fields you adjusted for the search. Before adding the Custom Labels, make sure that the Custom Fields, which you want to use, are set up in the Search & Navigation > Preferences section > Products tab > Search by custom fields setting.
To add a Custom Label, follow these steps:
- Go to the Searchanise control panel > Search & Navigation > Instant search widget section > Product Labels tab > Custom Labels part.
- Click the + New label button.
- Set up the label options:
- Custom Field Name – enter the name of a Custom Field into the text box. The name of the Custom Field must correspond to one of the values in the Search & Navigation > Preferences section > Products tab > Search by custom fields setting.
- Custom Field Value – enter the value of a Custom Field into the text box.
- Text – enter the text, which will be displayed as the label.
- Background color – enter or select the background color of the label.
- Text color – enter or select the text color of the label.
- Click the Save label button in the top-right corner.
That’s it. The added Custom Label is now displayed in the Instant Search Widget for products with the Custom Field equal to the Custom Field assigned to the Custom Label.
Edit a Custom Label
To edit Custom Labels, follow these steps:
- Go to the Searchanise control panel > Search & Navigation > Instant search widget section > Product Labels tab > Custom Labels part.
- Click the Edit link next to the label you want to edit.
- Edit the label options.
- Click the Save label button in the top-right corner.
Delete Custom Labels
To delete Custom Labels:
- Go to the Searchanise control panel > Search & Navigation > Instant search widget section > Product Labels tab > Custom Labels part.
- Select the label(-s) you want to delete.
- Click the Delete selected button.
- Confirm.
The Custom Labels can be customized further with the help of the Custom CSS feature. If you need help with that, feel free to contact us. Our support team will gladly help tweak them the way you want.
We’d appreciate it if you could take some time to leave a review.