Skip to content

Instantly share code, notes, and snippets.

@gvgvgvijayan
Created February 1, 2020 13:49
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 gvgvgvijayan/6c85665649b59e0e29013f2eb6f8d5f8 to your computer and use it in GitHub Desktop.
Save gvgvgvijayan/6c85665649b59e0e29013f2eb6f8d5f8 to your computer and use it in GitHub Desktop.
The snippet to explain overriding WooCommerce template. Website: www.vijayan.in
<header class="woocommerce-products-header">
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
<h1 class="woocommerce-products-header__title page-title"><?php echo strtoupper(woocommerce_page_title(false)); ?></h1>
<?php endif; ?>
<?php
/**
* Hook: woocommerce_archive_description.
*
* @hooked woocommerce_taxonomy_archive_description - 10
* @hooked woocommerce_product_archive_description - 10
*/
do_action( 'woocommerce_archive_description' );
?>
</header>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment