Discover now all features of YITH WooCommerce Brands Add-On and purchase now!

DISCOVER NOW the plugin features

YITH WooCommerce Brands Add-On Documentation

Shortcodes

Premium Version

Brand filter

The shortcode Brand Filter shows a complete list with all brands and gives you the possibility to filter them by name.

Shortcode attributes are the following:

  • 'title' : shortcode title
  • 'pagination': [yes / no] enable/disable brand pagination
  • 'per_page': [int] brands shown at a time per page
  • 'autosense_category': [yes / no] if set on 'yes', in category page, only brands associated products belonging to that category will be shown.
  • 'category': [ids / all] it shows one or more product categories; you can specify more than one category slug and separate them using commas (10,20,12) or select them all by specifying the value 'all' for the attribute.
  • 'show_filter': [yes / no] it allows brand filter
  • 'show_reset': [yes / no] it allows filter reset
  • 'show_all_letters': [yes / no] it shows all letters to filter brands by name
  • 'show_count': [yes / no] show the amount of products associated to each brand
  • 'hide_empty': [yes / no] it hides brands that have no products associated
  • 'style': [default / big-header / small-header / shadow / boxed / highlight] style to assign to the shortcode
  • 'highlight_color': code for the colour to assign to the text in the shortcode (available only if 'highlited' style is selected)

Example

[yith_wcbr_brand_filter title="Brand Filter (default style)" pagination="no" show_filter="yes" show_reset="yes" show_all_letters="yes" show_count="yes" hide_empty="yes" style="default" highlight_color="#ffd900"]
Brand Filter shortcode

Brand thumbnail

The shortcode Brand Thumbnail adds to your page a list with all brands and shows the logo for each of them.
Shortcode attributes are:

  • 'title': shortcode title
  • 'pagination': [yes /no] enable/disable brand pagination
  • 'autosense_category': [yes / no] if set on 'yes', only brands associated to products available in the selected category will be show in the category page.
  • '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.
  • 'per_page': [int] number of brands to show at a time
  • 'hide_empty': [yes / no] it hides brands that have no products associated
  • 'hide_no_image': [yes / no] it hides brands that have no images associated
  • 'cols': [int] number of columns for displaying brands
  • 'style': [default / boxed / shadow / borderless / top-border] style for the shortcode

Example

[yith_wcbr_brand_thumbnail title="Brand Thumbnail (default style)" pagination="no" per_page="6" hide_empty="no" hide_no_image="no" cols="2" style="default"]
Brand thumbnail shortcode

Brand product

The shortcode Brand Product shows shop products that are associated to one or more brands.
Shortcode attributes are the following:

  • 'title': shortcode title
  • 'per_page': [int] number of products to show per page; enter "-1" if you do not want product pagination
  • 'pagination': [yes /no] enable/disable brand pagination
  • 'cols': [int] number of columns for displaying brands
  • 'brand': [slug / all] product brands to show. You can specify more brand names by adding their slugs and separate them with commas or just specify 'all' if you want to show them all.
  • 'category': [categories] a list of valid comma separated category slugs, if you want to filter brands by product cat
  • 'product_type': [featured / on_sale / all] type of products to display
  • 'orderby': [rand / date / title / price / sales] sorting criteria for displayed products (random, date, name, price, discount)
  • 'order': [asc / desc] sorting direction (ascending or descending) subordinated to sorting criteria specified in the attribute 'orderby'
  • 'hide_free': [yes / no] hide free products
  • 'show_hidden': [yes / no] show/hide 'hidden' products
  • 'show_brand_box' [yes / no] show/hide box shown on top of the shortcode where all brands are listed

Example

[yith_wcbr_brand_product pagination="yes" per_page="12" cols="4" product_type="all" orderby="rand" order="DESC" hide_free="no" show_hidden="no" show_brand_box="yes" brand="yith-shirts,yith-music,globe"]
Brand Products shortcode

Brand grid

The shortcode Brand Grid shows brands in your shop by classifying them by category or name.

  • 'title': shortcode title
  • 'cols': [int] number of columns for displaying products
  • 'show_count': [yes / no] show number of products associated to each brand
  • 'hide_empty': [yes / no] hide brands with no products associated
  • 'show_image': [yes / no] show/hide brand image
  • 'hide_no_image': [yes / no] hide brands with no images associated
  • 'show_name': [yes / no] show/hide brand name
  • 'show_filtered_by': [none / name / category] order brands according to their name or category. Enter 'none' if you do not want to have any classification.
  • 'show_category_filter': [yes / no] show/hide shop category filter (attribute available only if the value for 'show_filtered_by' is 'name')
  • 'category_filter_type': [multiselect / dropdown] filter type: you can choose among multiple select option or dropdown menu for products (this attribute is available only if the value for 'show_filtered_by' is 'name')
  • 'category_filter_style': [default / shadow / border / round] layout for category filter (attribute available only if the value for 'show_filtered_by' is 'name')
  • 'show_name_filter': [yes / no] show/hide a complete list of letters so that users can click on one of them and go immediately to the part of the page where brands with that letter are listed (attribute available only if the value for 'show_filtered_by' is 'name')
  • 'show_all_letters': [yes / no] show/hide all letters (attribute available only if the value for 'show_filtered_by' is 'name' and if the value for 'show_name_filter' is 'yes')

Example

[yith_wcbr_brand_grid title="Brands Grid (multiselect - style 1)" cols="4" show_count="yes" show_image="yes" hide_empty="yes" hide_no_image="yes" show_name="yes" show_category_filter="yes" category_filter_type="multiselect" category_filter_style="default" show_name_filter="no" show_all_letters="yes"]
Brand Grid shortcode

Brand select

The shortcode Brand Select adds a select including all brands you have created for your shop.

  • 'title': [yes / no] shortcode title
  • 'autosense_category': [yes / no] if set on 'yes' only brands associated to products belonging to current category will be shown in category page.
  • 'category': [slug / all] show brands of one or more product categories; you can specify more than one category slugs and separate them with commas (shoes,jacket) or select them all by specifying the value 'all' for the attribute.
  • 'show_count': [yes / no] show the number of products associated to each brand
  • 'hide_empty': [yes / no] hide brands with no products associated

Example

[yith_wcbr_brand_select title="Brand Select" hide_empty="no" show_count="yes"]
Brand Select shortcode

Brand list

The shortcode Brand List shows a list with brands available in your shop, without giving the possibility to filter them
Shortcode attributes are the following:

  • 'title': [yes / no] shortcode title
  • 'autosense_category': [yes / no] if set on 'yes' only products associated to current category will be shown in category page.
  • '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.
  • 'per_page': [int] number of brands to show at a time; enter the value "-1" if if you want to show them all together
  • 'pagination': [yes /no] enable/disable brand pagination
  • 'show_count': [yes / no] show the amount 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 'highlited' style is selected)

Example

[yith_wcbr_brand_list title="Brand List" pagination="no" per_page="-1" show_count="yes" hide_empty="no" style="big-header" highlight_color="#ffd900"]
Brand List shortcode