Very nice!
-
At first User have to install ‘Shortcode Widget’ plugin to add accordion in widget.
If you don’t know name of your taxonomy, look for it in adress panel of category
for example:https://*yoursite*/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product
*** So taxonomy = product_catSo, you have to know something about css for editing style.
And if you have non empty ‘<a href..’ on category element with child links, welcome to write this code in ‘../inc/wpb-wmca-functions.php’:
BEFORE:
if( count($termchildren)>0 ){ $css_classes[] = 'cat-item-have-child'; }
AFTER:
if( count($termchildren)>0 ){ $css_classes[] = 'cat-item-have-child'; $link = '<*a href="#">'; $link .= $cat_name . '<*/a>'; }
! without * ??
It’s important to have an accordion action, not going to link of parent category.
- The topic ‘Very nice!’ is closed to new replies.