<?php
// don't output on WooCommerce pages like Cart and Checkout
if ( function_exists( 'is_woocommerce' ) ) {
	if ( is_cart() || is_checkout() || is_account_page() ) {
		return;
	}
}
if ( is_active_sidebar( 'primary' ) ) : ?>
	<aside id="sidebar-primary-container" class="sidebar-primary-container">
		<h1 class="screen-reader-text"><?php esc_html_e('Primary Sidebar', 'ignite'); ?></h1>
		<div class="sidebar sidebar-primary" id="sidebar-primary" role="complementary">
			<?php dynamic_sidebar( 'primary' ); ?>
		</div>
	</aside>
<?php endif; ?>