You need to check when filter is enabled and take selected attribute taxonomy, ‘pa_brand’ in this case:
add_action( 'woocommerce_before_shop_loop', 'desc_before', 75 );
function desc_before() {
if (is_filtered()) {
$brands = WC_Query::get_layered_nav_chosen_attributes() ['pa_brand'];
if ( isset($brands) ) {
foreach ($brands['terms'] as $term ) {
$term_obj = get_term_by('slug', $term, 'pa_brand');
echo '<div class="ka-attr-description">'.
'<h4>' . $term_obj ->name . '</h4>'.
$term_obj->description.
'</div>';
}
}
}
}
Related Posts:
- how to override woocommerce specific loop or archive-product.php [closed]
- How do I change text of a product template in a WooCommerce theme? [closed]
- Integrate Woocommerce to a custom theme
- Where are Additional CSS files stored
- Prevent WordPress from automatically installing a new theme each year
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Looking for a lightweight theme using WP3 new tags and features (not 2010) [closed]
- switch theme on fly
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- Widgets vs. Theme Mods
- get_theme_mod(); returns nothing
- Create a customizable child theme
- Make page template that is just an “include” of another?
- Disable email field on WooCommerce customer account details
- How can I & how do I change text displayed in comment via child theme
- Show post page only if the user has bought a specific product
- redirect product-category to a custom page
- How do I copy all “extra” data (menus, widgets, etc) from one theme to another?
- Woocommerce Product page edit
- $wp_customize->remove_section for customizer setting?
- Modify a theme to insert custom widgets?
- Cannot figure out how to center div in WordPress theme [closed]
- How to redirect WooCommerce shop URL?
- Unable to display custom fields on WooCommerce product pages
- How to add “Read More…” link in twentytwenty
- Updating Existed RocketTheme Theme on WordPress
- Send a custom WooCommerce email when custom order change [closed]
- Change WooCommerce product price based on category and GEO IP country
- Get page ID outside the loop, matching menu ID
- Putting tag outside tag on generated Menu
- How to customize core admin pages within a theme?
- Warning: Creating default object… when altering Customize panels
- Updates for a private theme
- How to add custom page attributes in WordPress?
- Viewing checkout page removes fees from mini cart
- custom theme ,add media not showing images in media library
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- how do I remove the shipping from woocommerce thankyou page and from the email
- Woocomerce custom billing address fields display in order details [closed]
- Color swatches on category page? [closed]
- help to change some colors (woocomerce and store locator) [closed]
- Theme Customization through admin panel. (Appearance-Customize)
- Navigation label for page in custom theme
- Is there a way to override require_once of the main theme on the child theme?
- Changer numbers of columns in woocommerce shop
- Moving wp-content folder
- “woocommerce_form_field()” function having issues after latest woocommerce update [closed]
- How to customize shipping region/states on WooCommerce
- Rename WooCommerce sorting dropdown options [closed]
- WordPress broken after domain name change
- Edit value=”” of a button in child theme
- WooCommerce custom billing fields on email address
- How to customize the WordPress 2014 theme, to have page using less horizontal margin?
- How to edit alternate inactive themes in “Appearance -> Customise” screen?
- Woocommerce custom checkout form
- Woocommerce custom field calculation
- wordpress shortcode not working
- Create a Page template selector page
- Is “get_template_part” hierarchy possible?
- Prevent WordPress from automatically installing a new theme each year
- Change default Video Player without Plugin
- Customizing woocommerce product page
- Woocommerce custom archive page custom content and shortcode
- customer specific email attachment
- How do I run a web app in my WordPress theme without the “wp-content/theme/…/webapp” in URL?
- Style WooCommerce Product Search Widget
- Product page not found if product data is set Appointment Service
- How to get the full product name by ignoring custom modification on it
- where is admin footer?
- Lost customization after switching the WordPress theme
- Woocommerce custom “My Account” Tab – Add Save button
- Need to add custom text field to Woocommerce under add to cart button
- Moving Quantity after product description
- Custom product status get filtered on all product list views
- Customized Blog/Latest Posts Page
- Upload advanced custom field text link array with csv
- Woocommerce – Remove cart button depending product (post) status
- Allow WP users to sort search result on a videos site
- How replace theme styles?
- Issue with navigation bar in child theme
- I want to use a product thumbnail completely different than the product image
- Including a Customized Initialize File with a wordpress header
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- How do I target this page specifically?
- How do I change the content of an element for a theme without losing the styling?
- How to Remove wpautop in woocommerce includes folder class-wc-order-item.php
- Unable to write error_log output… but only from a certain function
- Removing comma from ‘entry-date’ in Twenty-Sixteen theme
- call get_header() function from different theme
- Use another theme template in my theme
- WooCommerce customise checkout billing form [closed]
- Custom CSS File wont work on second Page
- How to add custom page using them in wordpress 3.5
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button
- woocommerce display product category on checkout page [closed]
- customizing a theme [closed]
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Change in credit card payment button for woocommerce
- How to display product variations on same row
- Custom product sorting archive page