General settings for Category Accordion

To change the general settings of the plugin, go to the option panel clicking on YIT Plugins -> Category Acccordion.

general settings

Here follows the complete option list:

  • Hide empty: exclude all the categories and tags that don’t have assigned elements.
  • Open accordion on: occurrence for the opening of the accordion (click or hover).
  • Accordion speed: opening/closing speed of the accordion (in milliseconds).
  • Closed Accordion: the accordion will be displayed closed after the loading of the page.
  • Open subcategories: the accordion of the current category will be displayed opened after the loading of the page.

sub-categories

  • Max depth level: level of the subcategories to show. Only subcategories of that level and higher would be considered. Seto to 0 if you want to show all the subcategories.
  • Limit: number of elements (tag or category) to show. Set to -1 to show them all.

Style options to configure layout

Configure the 4 layout styles you can use for the plugin widget/shortcode.
Go to the option panel and click on one of the related tabs to configure a style.

Style options

The style options are divided in three main sections: General SettingsStyle Parent Categories and Style for Child Categories.

GENERAL SETTINGS

general style options

  • Title Typography: options for the typography of the title.
  • Container Border Color: border color of the widget/shortcode container.
  • Title Container Background: background color of the box that contains the title.
  • Title Border Color: color of the lower border of the box that contains the title.
  • Count Style: style to assign to the value indicated for each element of the list (only if the “Show Count” option is active).

STYLE PARENT CATEGORIES

style parent categories

  • Typography Parent Categories: typography options for the parent categories of the list.
  • Parent Categories Background: background color of the parent categories.
  • Border Color: color of the lower border for the parent categories of the list.

STYLE FOR CHILD CATEGORIES

STYLE FOR CHILD CATEGORIES

  • Typography for Child Categories: typography options for the subcategories.
  • Child Categories Background: background color of the subcategories of the list.
  • Border Color: border color for each subcategory of the list.

Widget

widget

Full list of the available options with the YITH WooCommerce category Accordion widget.

  • Title: widget title.
  • Show in Accordion: type of element to show (WordPress categories, WooCommerce categories, WordPress tag, WooCommerce tag, WordPress menu).
  • Show WordPress/WooCommerce subcategories: show/hide the subcategories (if available) created on WooCommerce or WordPress, depending on the selected type on “Show in Accordion”.
  • Exclude WordPress/WooCommerce Categories: WordPress or WooCommerce categories to exclude in the list of the page.
  • Show Last Post: show the last published post for each category (option available only if you decide to show WordPress categories).
  • Highlight the current category: highlight the category of the page in which users are.
  • Show Count: show the number of elements assigned to each category.
  • Style: style for the widget – you can select it among the 4 set in the option panel of the plugin.
  • Hide Accordion in pages: pages in which you don’t want to show the widget.
  • Hide Accordion in posts: posts in which you don’t want to show the widget.
  • Order By : category sorting by ID, name, or number of associated elements

Shortcode

To add the YITH WooCommerce Category Accordion shortcode in the page, click on the button you can find in the text editor.

Shortcode

Here follows the complete list of the configurable options with the shortcode, specifying the name of the attribute with the related default value in brackets in case you want to add the shortcode in the code of your theme.

  • Title: (‘title’=”) shortcode title.
  • Show in Accordion: (‘how_show’ = ” ) type of element to show (WordPress categories, WooCommerce categories, tag, WordPress menu).
    • WordPress categories (‘how_show’ = ‘wp’ )
    • WooCommerce categories (‘how_show’ = ‘wc’ )
    • tag categories (‘how_show’ = ‘tag’ )
    • WordPress menu (‘how_show’ = ‘menu’ )
  • Show WordPress/WooCommerce subcategories: (‘show_sub_cat’ = ‘on/off’) show/hide the subcategories (if available) created on WooCommerce or WordPress, depending on the selected type on “Show in Accordion”.
  • Exclude WordPress/WooCommerce Categories: (‘exclude_cat’ = ‘ids’) WordPress or WooCommerce categories to exclude in the list of the page.
  • Show Last Post: (‘show_last_post’ = ‘on/off’) show the last published post for each category (option available only if you decide to show WordPress categories).
  • Highlight the current category: (‘highlight’ = ‘on/off’) highlight the category of the page in which users are.
  • Show Count: (‘show_count’ = ‘on/off’) show the number of elements assigned to each category.
  • Style: ( ‘acc_style’ = ‘style_1/style_2/style_3/style_4’ ) style for the shortcode – you can select it among the 4 set in the option panel of the plugin.
  • Hide Accordion in pages: (‘exclude_page’ = ‘ids’) pages in which you don’t want to show the shortcode.
  • Hide Accordion in posts: (‘exclude_post’ = ‘ids’) posts in which you don’t want to show the shortcode.
  • Order: (‘order’ = ‘ASC/DESC’) (‘orderby’ = ‘name,id,count’) sorting system for the entries of the list.