You can set up custom labels for products based on their tags to highlight certain products in search results of the Search Results Widget.
Adding labels
Steps:
- Go to the Searchanise control panel > Search & Navigation > Search results widget section > Product Labels tab > Labels by tag part.
- Click the + button.
- Set up the label options:
- Product Tag – enter a product tag into the text box.
- Label type – you can show labels as text or images.
- Text – enter the text which will serve as the label, if you select the Text label type.
- Background color – enter or select the background color of the label, if you select the Text label type.
- Image – select the image to show, if you select the Image label type. You can choose between 2 ready-made label images (New and Sale) and your own image. To add your own image you’ll need to insert the image URL to the corresponding field.
- Position – select the place where you want to show the label.Note
If the discount labels or in-stock labels are also active, only one of the labels can be shown in the position. Labels by Tags have a higher priority than discount labels and in-stock labels have a higher priority than labels by tag.
- Click the Save label button in the top-right corner.
That’s it. The label by tag has been added and it is now displayed in the Search Results Widget.
To show custom labels in the Instant Search Widget you’ll need to apply the settings in the Instant search widget section.
Editing labels
Steps:
- Go to the Searchanise control panel > Search & Navigation > Search results widget section > Product Labels tab > Labels by tag 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.
Deleting labels
Steps:
- Go to the Searchanise control panel > Search & Navigation > Search results widget section > Product Labels tab > Labels by tag part.
- Select the Delete checkbox next to the label you want to delete.
- Click the Delete selected button.
- Confirm.