Subcategories buttons

Plugin Banner

Subcategories buttons

by Lukáš Bachleda - LavaDESIGN

Download
Description

Display current Woocommerce categorie’s direct childs subcategories. Display the highest level of categories, if you are anywhere else, but product-archive. Lightweight plugin to use with shortcode [subcategories_buttons], wherever you need. Simple, but usefull settings included.

  1. Upload the plugin files to the /wp-content/plugins/lava-reading-time directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use shortcode [subcategories_buttons] to show subcategories of current product category.
How can I use the plugin?

Simply install, activate the plugin, then use the shortcode [subcategories_buttons] to display, wherever you need.

Are there any settings?

Yes. Look for Setting-> Subcategories Buttons. There you can simply Exclude categories (one, or more), set the number of buttons in a row (1-6), set the color of border and border radius of button, select, if you would like to display category thumbnail, or check, if you want to hide categories with no product.

What happend, if I show category images, but there are some categories without images?

Nothing special. Categories, which have image, would display with image, the others without it. No problem.

Which categories will be shown?

The plugin is designed to use especially on product-archives. Selecting the categories are based on your product category tree (see Woocommerce-Products -> Product categories), not on your menu. You will always get back the first lower categories level from current category. If you are on main shop page, other static page, post, homepage, or CPT (Custom Post type), you will get back the very first level of categories. Oppositely – if you are on the lowest category level, you will get back nothing (there are no lower categories, which could be displayed).

1.0.0

  • First release.
Back to top