Created
October 27, 2020 14:51
-
-
Save yousufansa/a9bddf91a966b53f5a31276ec0903d1d to your computer and use it in GitHub Desktop.
Cartzilla - Display Product Category Description on Product Category page before products loop
This file contains hidden or 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
| if( ! function_exists( 'cz_child_display_product_category_description' ) ) { | |
| function cz_child_display_product_category_description() { | |
| if ( is_product_category() && ! empty( term_description() ) ) { | |
| ?><div class="mb-4"><?php echo term_description(); ?></div><?php | |
| } | |
| } | |
| } | |
| add_action( 'woocommerce_before_shop_loop', 'cz_child_display_product_category_description', 16 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment