Created
March 14, 2019 12:32
-
-
Save tuanbbhero/280557ceeb3f0c17b5d4c2c73a595ed4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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