The Brands List is a block or shortcode that shows a list of all the brands available in your shop but without filters.
Following you find the options of the block.
- Title: you can enter a custom title before this block
- Paginate items: choose whether to paginate the items or not
- Items per page: if you paginate items, you can choose how many items per page to show
- Show only brands of the current category: enable this option to dinamically show only the brands of the current category. This option is useful if you are displaying this block on a category page or on a filtered page.
- Enter the list of category slugs (separated with a comma) to show. Leave empty to show all categories. This option overrides the previous option.
- Enter the list of brand slugs (separated with a comma) to show. Leave empty to show all brands.
- Enter the parent brand ID to show. All the sub-brands will be displayed. Leave empty to show all brands.
- Order by – choose here how to sort the displayed brands:
- Term ID
- Order – if any order option has been selected, choose whether to sort them:
- Show items count for each brand: this allows you to show a counter with the total number of products in each brand.
- Hide brands with no products: choose whether or not to hide brands that do not include any product.
- Shortcode style:
- Big header
- Small header
- Highlight color selector (available only for the Hightlight style and if the Show items count is enabled): this is the accent color of the counter items (yellow in the screenshot below)
The same options are available in the shortcode as attributes. Below you find all the attributes and their accepted values.
- ‘title’: [yes / no]
- ‘pagination’: [yes /no] enable/disable brand pagination
- ‘per_page’: [int] number of brands to show at a time; enter the value “-1” if you want to show them all together
- ‘autosense_category’: [yes / no] if set to ‘yes’ it only shows the brands of the current category.
- ‘category’: [slug / all] show brands of one or more product categories; you can specify more category slugs and separate them with commas (shoes,jackets) or select them all by specifying the value ‘all’ in the attribute.
- ‘show_count’: [yes / no] show the number of products associated to each brand
- ‘hide_empty’: [yes / no] hide free products
- ‘style’: [default / big-header / small-header / shadow / boxed / highlight] shortcode layout
- ‘highlight_color’: code for the colour to assign to shortcode text (available only if ‘highlighted’ style is selected)
[yith_wcbr_brand_list title="Brand List" pagination="no" per_page="-1" show_count="yes" hide_empty="no" style="big-header" highlight_color="#ffd900"]