Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuanbbhero/280557ceeb3f0c17b5d4c2c73a595ed4 to your computer and use it in GitHub Desktop.
Save tuanbbhero/280557ceeb3f0c17b5d4c2c73a595ed4 to your computer and use it in GitHub Desktop.
function kl_woocommerce_taxonomy_archive_description() {
if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) != 0 ) {
$description = wc_format_content( kl_description() );
if ( $description ) {
echo '<div class="kl-description">' . $description . '</div>';
}
}
}
add_action( 'woocommerce_archive_description', 'kl_woocommerce_taxonomy_archive_description');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment