Files

23 lines
699 B
Twig
Raw Permalink Normal View History

{#
# Product Archive Header (Bootstrap 5 Override)
#
# Renders the archive page title and optional description.
# Calls woocommerce_page_title() directly (matching the PHP template)
# because wc_get_template('loop/header.php') passes no context args.
#
# WooCommerce PHP equivalent: loop/header.php
#
# @package WcBootstrap
# @since 0.1.0
#}
<header class="woocommerce-products-header mb-4">
{% if apply_filters('woocommerce_show_page_title', true) %}
<h1 class="woocommerce-products-header__title page-title mb-2">
{{ fn('woocommerce_page_title', false)|esc_html }}
</h1>
{% endif %}
{{ do_action('woocommerce_archive_description') }}
</header>