The brands extension for WooCommerce allows you to create brands for your shop; each brand can be named, described and assigned an image.
Installation ↑ Back to Top
To install the brands extension:
- Download the extension from your dashboard
- Upload the plugin folder to your /wp-content/plugins/ directory
- Activate ‘WooCommerce Brands’ from the Plugins menu within WordPress
Usage ↑ Back to Top
To start adding brands, first browse to Products > Brands. The interface works just like adding categories and tags; the form on the left lets you add a brand and then they are displayed on the right.
Give brands a name, description, and optionally an image. Brands can also be hierarchical:
When you’ve added your brands they will be listed on the right. You can edit them by clicking their names, or re-order them by dragging and dropping.
Assigning a brand to a product
Assigning brands to products is the same process as adding categories and tags:
Please note however, when showing brands on the single page, some of the shortcodes will only pull 1 brand rather than all.
Shortcode reference ↑ Back to Top
Brands adds the following shortcodes for usage.
Shows a brand’s image with a link to its archive page. This only works on product pages, not on posts or other WordPress pages.
Args: width, height, class (default: aligncenter)
[product_brand width="64" height="64" class="alignright"]
Shows an A-Z index of brands with links to archive pages.
Args: show_top_links (default: true), show_empty (default: true), show_empty_brands (default: false)
Show top links refers to “back to top” links under each brand section.
Show empty is used to hide letters for with no brands (otherwise they are greyed out).
Show empty brands lets you show brands which have no products inside, if you wish.
[product_brand_list show_top_links="true" show_empty="false" show_empty_brands="false"]
Shows a list of product brand thumbnails with links to their archives.
Args: columns (default: 12), show_empty (default: true), orderby (the order, defaults to name), exclude (ids to exclude, comma separated), number (number to show, defaults to all)
[product_brand_thumbnails columns="12" show_empty="false"]
Widgets ↑ Back to Top
To learn more about how to add the Brands Widgets listed below to your site please see our tutorial here: How to Add Widgets
This widget shows the description for the currently viewed brand archive.
This widget provides layered navigation for products based on brand.
This widget lists brands with thumbnails.
Functions ↑ Back to Top
get_brand_thumbnail_url( $brand_id )
Get a brands image for use within PHP code.
get_brands( $post_id = 0, $sep = ‘, ‘, $before = ”, $after = ” )
Gets a comma separated list of brands for a product.
Settings ↑ Back to Top
The settings can be found in WooCommerce > Settings > Catalog.
- Show description – Choose whether or not to show the brand description on the archive. This is useful if you want to show the description in your sidebar via a widget instead.